Skip to content

Instantly share code, notes, and snippets.

@metaperl
Created May 10, 2020 08:59
Show Gist options
  • Save metaperl/949b70cec7af4dfa0f210052234c43c7 to your computer and use it in GitHub Desktop.
Save metaperl/949b70cec7af4dfa0f210052234c43c7 to your computer and use it in GitHub Desktop.
for i, datum in enumerate(provider.xpath('td')):
Behold().show('i', 'datum')
if i == 1: # name
url = datum.css("a::attr(href)").get()
scrapy.Request(url=url, callback=self.parse_name, meta={'data_row': data_row })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment