chris-greening / instascrape

Powerful and flexible Instagram scraping library for Python, providing easy-to-use and expressive tools for accessing data programmatically
https://chris-greening.github.io/instascrape/
MIT License
630 stars 107 forks source link

Empty field in scrapped profile #41

Closed klabertants closed 3 years ago

klabertants commented 3 years ago

Describe the bug Profile fields after scrapping are empty.

To Reproduce

Code profile = Profile("hm")
profile.scrape()
profile.username

Gives the output nan

Expected behavior Right output (in this case "hm")

Desktop (please complete the following information):

chris-greening commented 3 years ago

Hello @klabertants ! Thanks for opening an issue

I wasn't able to reproduce the missing field value, it works fine for me. Can you show me what you get in profile.json_dict?

chris-greening commented 3 years ago

Gonna close this for the time being until more info is provided/someone else has the same issue. Let me know if the issue persists and I will reopen it 👍

Cherchercher commented 2 years ago

post.username is nan sometimes. For example: https://www.instagram.com/p/COSzSS4DQNG/

works around : post.json_dict['graphql']['shortcode_media']['owner']['username']