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

Always saves login users biography #88

Open AdeBlanche opened 3 years ago

AdeBlanche commented 3 years ago

Describe the bug The biography returned is always that of the login user.

To Reproduce Script that gives the wrong output: from instascrape import *

SESSIONID = ' xxx ' headers = {"user-agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Mobile Safari/537.36 Edg/87.0.664.57", "cookie": f"sessionid={SESSIONID};"} user = Profile("anna") user.scrape(headers=headers) print(user.username, " bio ", user.biography)

user = Profile("andreas") user.scrape(headers=headers) print(user.username, " bio ", user.biography)

output: anna bio Login users text andreas bio Login users text

Expected behavior It should write out the bio of the individual users.

Desktop (please complete the following information):

Thank you for a nice software.

AgnesLL commented 3 years ago

I have similar issue but it only outputs the bio of the logged in user (myself).

AdeBlanche commented 3 years ago

I made this change manually in my repository and it works very well. Waiting for a merge of the PR. @chris-greening