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
636 stars 111 forks source link

Biography field brings own bio #153

Open matiastiberio opened 2 years ago

matiastiberio commented 2 years ago

Hi!

I'm currently trying to scrape the bio of the page I'm redirecting but instead is bringing my own profile bio:

google = Profile('https://www.instagram.com/fiat_planes/')

google.scrape(headers=headers)

page_data = []

page_data.append(google.biography) page_data.append(google.followers) page_data.append(google.posts) page_data.append(google.username) df = pd.DataFrame({'Bio':page_data[0], 'Followers':page_data[1], 'Posts':page_data[2], 'Username':page_data[3]}, index=[0]) print(df)

Result:

                                  Bio  Followers  Posts     Username

0 Cause I know 狂い出した未来\n悪夢すら平凡 リセット リセット 346 105 fiat_planes

The bio is the only thing that tracks down from my own profile. Followers, posts and username is from the URL profile.