instascrape icon indicating copy to clipboard operation
instascrape copied to clipboard

Getting an Error while I call method "scrape"

Open botkeshav opened this issue 2 years ago • 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")

botkeshav avatar Jun 05 '22 13:06 botkeshav

I am also facing the same issue

haresh14 avatar Jun 08 '22 03:06 haresh14

same, help please

thomasperge avatar Jul 10 '22 13:07 thomasperge