chris-greening/instascrape

Getting an Error while I call method "scrape"

botkeshav opened this issue · 2 comments

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")

I am also facing the same issue

same, help please