You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
Describe the bug
Scrapping post using Post method gives error.
Traceback (most recent call last):
File "/instagram-scrapping/main.py", line 23, in <module>
post.scrape(headers=headers)
File "lib/python3.7/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)
To Reproduce
Steps to reproduce the behavior:
from instascrape import Post
headers = {'user-agent': '', 'cookie': 'sessionid:{SESSION_ID}'}
post = Post("https://www.instagram.com/p/CaDMviujr4q/")
post.scrape(headers=headers)