instascrape icon indicating copy to clipboard operation
instascrape copied to clipboard

ValueError: Invalid value NaN (not a number)

Open mariodias opened this issue 2 years ago • 0 comments

it is not possible to scrape the Post class, follow error:

ValueError Traceback (most recent call last) in () 6 # Scrape their respective data 7 google.scrape(headers=headers) ----> 8 google_post.scrape(headers=headers) 9 google_hashtag.scrape(headers=headers) 10

/usr/local/lib/python3.7/dist-packages/instascrape/scrapers/post.py in scrape(self, mapping, keys, exclude, headers, inplace, session, webdriver) 86 # way to deal with returning a Post object with only partial data 87 if hasattr(return_instance, "timestamp"): ---> 88 return_instance.upload_date = datetime.datetime.fromtimestamp(return_instance.timestamp) 89 if hasattr(return_instance, "shortcode"): 90 return_instance.url = self._url_from_suburl(return_instance.shortcode)

ValueError: Invalid value NaN (not a number)

mariodias avatar Jun 28 '22 16:06 mariodias