On 19 Mar 2008, at 13:49, Christiaan Hofman wrote:
I did not see any URL that accepts something like a "? query=searchterm" query component or something. It is a URL with a particular syntax for passing the name. You cannot expect a user to exactly type the query in that specific form.So basically, you need to be able to translate a query string the user types to a request (URL) you cna send to the server. I did not see anything like that in what you've told us.
But you don't have to deal with all this. The http routines do all that for you. See below.
I really don't want to mix with Java. That's messy, and moreover the Java-Cocoa bridge is deprecated.
Of course I didn't mean to actually use Java. All I wanted to stress is that it seems easy to implement what I am talking of in Java. In order to prove that, I attached a simple code that fills a list of strings with bibtex entries for a given query (I hope we can send attachments). The code is straightforward and commented. It took me about 20 minutes to code that (it's badly written). In ObjC/Cocoa, I have no idea how long it would have taken (I have to spend some time finding out how to manipulate regex's, html documents, make http connections, etc.), but it's definitely doable, especially for someone who has some Cocoa experience.
DBLPQuery.java
Description: Binary data
(If you want to test it by yourself, you'll need the Jericho HTML Parser, http://jerichohtml.sourceforge.net/)
I think you can get a lot of the ideas from the google scrapers or the other web scrapers (all the parsers referenced in BDSKWebParser) , because it's very similar to what you need. Also the xcode developer tools contain a lot of documentation.
I will keep you up to date about my advancement on this. A
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Bibdesk-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
