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

ValueError: Invalid value NaN (not a number) #162

@mariodias

Description

@mariodias

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions