Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import time
- urls = ["https://scrapeme.live/shop/", "https://scrapeme.live/shop/page/2/", "https://scrapeme.live/shop/page/3/"]
- start_time = time.time()
- for url in urls:
- response = requests.get(url)
- html_content = response.text
- end_time = time.time()
- print(f"Time taken: {end_time - start_time} seconds")
- # Result
- # Time taken: 5.29.. seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement