instascrape
instascrape copied to clipboard
Always saves login users biography
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):
- OS: Centos 7
- Latest Version of instascrape, 5th of feb
Thank you for a nice software.
I have similar issue but it only outputs the bio of the logged in user (myself).
I made this change manually in my repository and it works very well. Waiting for a merge of the PR. @chris-greening