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
625 stars 109 forks source link

[POST MODULE] some post url return NAN value for 'USERNAME'. #123

Open 59-web opened 3 years ago

59-web commented 3 years ago

First of all, thank you for making this great one.

I'm trying to analysis some posts and i have used 'post module'. Everything works perfectly except 'username'. Some post url couldn't get 'username' and gave me 'nan' value. (It obviously have an 'username'.)

Can you check this out? (Please forgive me that It's not my instagram account which I tried to analysis so i couldn't write down the exact URL here.)

If there are some ways to give you the URL individually, please let me know so that i can give you that.

Thank you!

Cherchercher commented 2 years ago

workaround: username = post.json_dict['graphql']['shortcode_media']['owner']['username']