Created
April 12, 2021 13:56
-
-
Save ian-kerins/9627a1bca674a8fca56b1b0ae4a370e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def start_requests(self): | |
queries = ['scrapy’, ‘beautifulsoup’] | |
for query in queries: | |
url = create_google_url(query) | |
yield scrapy.Request(get_url(url), callback=self.parse, meta={'pos': 0}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment