Exemple #1
0
    def parse(self, response):
    	x = HtmlXPathSelector(response)

    	posters = x.select("//*[@id='box6']/div/p/i/text()").extract()

    	scrapes = []

    	for i in posters:
    		scrape = aaaiItem()
    		scrape['authors'] = i
    		scrapes.append(scrape)

    	return scrapes
Exemple #2
0
    def parse(self, response):
    	x = HtmlXPathSelector(response)

    	posters = x.select("//*[@id='box6']/div/p/i/text()").extract()

    	titles = x.select("//*[@id='box6']/div/p/a/text()").extract()

    	scrapes = []

    	for i, pb in enumerate(posters):
    		scrape = aaaiItem()
    		scrape['authors'] = pb
    		scrape['titles'] = titles[i]
    		scrapes.append(scrape)

    	return scrapes