Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 8373988

Browse files
captainrobertscaptainroberts
authored andcommitted
Fixed wrong variable call
1 parent 04b59e6 commit 8373988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/Web_Scrappers/Amazon_products_scraper/AmazonScraper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def scrape(url):
3030
req = requests.get(url, headers=headers)
3131
# This is just to check if Amazon blocked our scraper.
3232
if req.status_code > 500:
33-
if "Contact for access to amazon data." in r.text:
33+
if "Contact for access to amazon data." in req.text:
3434
print("Amazon Page: %s was blocked by Amazon. Please try using better proxies\n"%url)
3535
else:
3636
print("Amazon Page: %s was blocked, status code is: %d"%(url,req.status_code))

0 commit comments

Comments
 (0)