chris-greening / instascrape

Powerful and flexible Instagram scraping library for Python, providing easy-to-use and expressive tools for accessing data programmatically
https://chris-greening.github.io/instascrape/
MIT License
633 stars 109 forks source link

Getting an Error while I call method "scrape" #160

Open botkeshav opened 2 years ago

botkeshav commented 2 years ago

line 14, in google_reel.scrape(headers=headers) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/instascrape/scrapers/post.py", line 88, in scrape return_instance.upload_date = datetime.datetime.fromtimestamp(return_instance.timestamp) ValueError: Invalid value NaN (not a number)

I am getting this error every time i am calling scrape method regardless of its type on what i am calling it for example it is coming on anything like posts, profile, IGTV, reel.

The whole code is this: from instascrape import Reel

SESSIONID = "Session_id"

headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.74 Safari/537.36 Edg/79.0.309.43", "cookie":f'sessionid={SESSIONID};' }

google_reel=Reel(link) google_reel.scrape(headers=headers) google_reel.download(fp=f"video.mp4")

haresh14 commented 2 years ago

I am also facing the same issue

thomasperge commented 2 years ago

same, help please