question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Login to Instagram

See original GitHub issue

Is your feature request related to a problem? Please describe. Depending on usage, this library won’t work as intended because Instagram seemingly checks cookies to make sure the user isn’t a random bot. If using instascrape from a personal computer that has been logged into Instagram before, this doesn’t seem to be a problem. Unfortunately, the library breaks if trying to use it from say a remote server that has never logged into Instagram before.

Describe the solution you’d like Provide a way to bypass these restrictions by either

  • logging into Instagram using requests.post or similar lightweight lib
  • come up with a way of spoofing/determining/etc. cookies that Instagram looks for
  • find out how to request JSON or similar data directly from their server
  • any other method that just allows users to bypass Instagram restrictions

Describe alternatives you’ve considered Considered using selenium to login but I really don’t want to force people to install or use selenium, the whole purpose is supposed to be lightweight and selenium has too much overhead and is slow

Additional context N/A

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
NivardoXcommented, Oct 14, 2020

Hey @chris-greening, have you seen this approach? It had some recent updates. Perhaps is a good way of avoiding selenium and heavier tools.

That’s exactly the idea I was going for! Definitely looking to use requests.post if it’s possible. I’ll tinker around with this later today, thanks for the reference 😏

Awesome, when you start coding this, tag me for help. I would love to help you w this. 😄

1reaction
NivardoXcommented, Oct 14, 2020

Hey @chris-greening, have you seen this approach? It had some recent updates. Perhaps is a good way of avoiding selenium and heavier tools.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Login • Instagram
Welcome back to Instagram. Sign in to check out what your friends, family & interests have been capturing & sharing around the world....
Read more >
Login • Instagram - secure.instagram.com
Welcome back to Instagram. Sign in to check out what your friends, ...
Read more >
Instagram
Create an account or log in to Instagram - A simple, fun & creative way to capture, edit & share photos, videos &...
Read more >
Login and Passwords - Instagram Help Center
If you're having trouble logging into your account, learn how to get login and password help. You can also learn how to reset...
Read more >
Instagram Help Center
The log in screen lets you create a new account or log into an existing account on Instagr. Recover your Instagram password.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found