Skip to content

Instantly share code, notes, and snippets.

@amandaiglesiasmoreno
Created May 15, 2020 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandaiglesiasmoreno/ca7c48578b443a4d8c58d7be42839ae4 to your computer and use it in GitHub Desktop.
Save amandaiglesiasmoreno/ca7c48578b443a4d8c58d7be42839ae4 to your computer and use it in GitHub Desktop.
import time
import requests
items_to_scrape = ['https://en.wikipedia.org/wiki/Madrid', 'https://en.wikipedia.org/wiki/Munich', 'https://en.wikipedia.org/wiki/Valencia']
for item in items_to_scrape:
response = requests.get(item)
###
### your code
###
time.sleep(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment