instascrape icon indicating copy to clipboard operation
instascrape copied to clipboard

Always saves login users biography

Open AdeBlanche opened this issue 3 years ago • 2 comments

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.

AdeBlanche avatar Feb 09 '21 23:02 AdeBlanche

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

AgnesLL avatar Feb 20 '21 22:02 AgnesLL

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

AdeBlanche avatar Apr 11 '21 09:04 AdeBlanche