This repository was archived by the owner on Apr 20, 2023. It is now read-only.
Replies: 2 comments 4 replies
-
|
I'll take a look at this. |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
@chrisgreening
Thanks mate for the reply. Not sure if you'll get this but we'll see what
happens.
I've found that using Selenium resolved this error and I don't have to
worry about session ids changing.
I've encountered the following error though (Error #86)
…On Fri, Feb 5, 2021 at 11:31 AM Beckett Normington ***@***.***> wrote:
Seems like it might be relating to hard coding your session ID. While this
shouldn’t be happening, you might have to use an f-string with a variable.
Sorry for the suboptimal solution and I’m going to look into this further.
ping: @chris-greening <https://github.com/chris-greening>
Hacky example (copy and pasted from #78
<#78>):
from instascrape import *
session_id = '' # Your session ID - http://valvepress.com/how-to-get-instagram-session-cookie/
google = Profile('https://www.instagram.com/google/')
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={session_id};"}
google.scrape(headers=headers)
print(google.followers)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#85 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMHGRXMNK6PORWVPNTPJEMDS5NC7JANCNFSM4XAAPGVQ>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, trying to scrape and I keep getting this warning:
Despite having a
headersvariable:And using it whenever I use the
*.scrape()methodBeta Was this translation helpful? Give feedback.
All reactions