Newbie Question - Website that returns data setup in php
Here is an example of data returned from an inquiry:
!-- this section of the code retrieves variables from the url and sets them in php -->
Detailed View: 1 of 1 Back to Search Results
How do you setup screen scraper for this type of data. Depending upon how much information is available, each inquiry can have more or less data. I just don't see anything unique to use for mapping.
If looking at the site would help: http://cylinders.library.ucsb.edu/search.php
Even if this can't be accomplished, I'd appreciate knowing so I don't keep wasting time.
Thanks in advance!!
Jeff
With a little twist
jdhelle,
For the most part, this would be straight-forward. However, there is a little twist to the data that would complicate things. If you look at the 15th result here.
http://cylinders.library.ucsb.edu/search.php?query=flowers&queryType=@attr+1%3D1016
You'll notice that there are two sets of Issue Numbers/Labels where all of the others only have one set. In a case like this you'll need to make use of a technique we call Manual Extraction.
If you added the following two extractor patterns to your scrapeable file and modified our example manual extraction script, I think it can be done.
Extractor pattern 1:
~@num@~
~@PERFORMERS@~
~@TITLE@~
~@ISSUES_AND_LABLES@~
[~@YEAR_OF_RELEASE@~]
Extractor Pattern 2:
(under the Advanced tab check "This extractor pattern will be invoked manually from a script")
>~@ISSUE_NUM@~: ~@LABEL@~<
-Scott