Have a good day.

I am new in Scrapy. I am trying to parse photos from links in page 
http://sfpl.org/index.php?pg=2000028501

XPATH_WAY = '/html/body/div[2]/div[1]/div[3]/div[2]/div[2]/div[2]/ul/li'
XPATH_DETALIED = 
['/html/body/table/tbody/tr[2]/td/table/tbody/tr/td[3]/a[not(@name)]']

class SplfDetailsSpider(CrawlSpider):
    name = 'splf_details'
    rules = [
        Rule(LinkExtractor(allow='search', restrict_xpaths=XPATH_WAY)),
        Rule(LinkExtractor(allow='2exact', restrict_xpaths=XPATH_DETALIED)),
        Rule(LinkExtractor(allow='frameset'), callback='detail_parse')
    ]

    start_urls = ["http://sfpl.org/index.php?pg=2000028501";]

Scrapy without problem parse links from the started page, but in next page 
when he trying to extract links from XPATH_DETALIED.
There is get a problem. He cuts a part of link, for ecxample:

>From page:
    http://sflib1.sfpl.org:82/search/d?SEARCH=Banks+A

First item in xpath's list:
    <a 
href="/search?/dBanks+A/dbanks+a/1%2C4%2C41%2CE/frameset&amp;FF=dbanks+american+national+bank&amp;1%2C1%2C">Banks
 
American National Bank</a>

Link Extractor cut a link to:
     
http://sflib1.sfpl.org:82//search?/dBanks+A/dbanks+a/1%2C4%2C41%2CE/frameset&amp;FF=dbanks+american+national+bank

Help please how to resolve this problem.
     




-- 
You received this message because you are subscribed to the Google Groups 
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to