Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import db
import scraper
import time
URL = "https://www.amazon.in/dp/B077Q42J32/"
def track():
details = scraper.get_product_details(URL)
result = ""
if details is None:
result = "not done"
else:
inserted = db.add_product_detail(details)
if inserted:
result = "done"
else:
result = "not done"
return result
while True:
print(track())
time.sleep(60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment