Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

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

Open
botkeshav opened this issue Jun 5, 2022 · 2 comments
Open

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

botkeshav opened this issue Jun 5, 2022 · 2 comments

Comments

@botkeshav
Copy link

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 botkeshav changed the title Getting an Error while I call use a method scrape Getting an Error while I call method "scrape" Jun 5, 2022
@haresh14
Copy link

haresh14 commented Jun 8, 2022

I am also facing the same issue

@thomasperge
Copy link

same, help please

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants