GithubHelp home page GithubHelp logo

isarabjitdhiman / instagpy Goto Github PK

View Code? Open in Web Editor NEW
79.0 5.0 19.0 100 KB

InstaGPy is an Instagram Unofficial API to extract data from Instargam Profiles. Scrape data from user's profile like username, userid, bio, email, phone, followers/followings list, profile media, account_type, etc.

License: MIT License

Python 100.00%
insta-scrape instagram-api instagram-bot instagram-scraper instascraper instagpy insta-api instagram instagram-bots instagram-client

instagpy's People

Contributors

isarabjitdhiman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

instagpy's Issues

get_user_basic_details() not working when using multiple accounts

When trying to execute get_user_basic_details() form logged_in instance of InstaGPy - function works.
But when instance initialised with sessions from multiple accounts - doesn't.
I did a little investigation, function get_user_info returns in this case html instead of object.

Submitting isolated test screenshot, obviously nothing could be changed between cases - they were performed sequentially.

Screenshot 2024-03-23 at 18 30 15

Account being blocked when having multiple sessions

Hey @iSarabjitDhiman Im trying to scrape data, but every 11-12 requests to get_user_data() and get_user_id() the account gets blocked. I created 2 session ids based on the same account, with a max_requests of 9, and only limit my results to 20 of them, and yet it gets blocked, any recomendations? thanks!

insta = InstaGPy(
    use_mutiple_account=True,
    session_ids=session_ids_lst, 
    max_requests=9)

Later on it gets only 20 results of followers info, but it gets blocked and the 11-12 request done to get all the user info such as email and phone number, dont understand why if followed your recomendation.

login(tuniksleigh=None, tonnix=None, show_saved_sessions=False, save_session=True): """ Login Into a user account for Data Scraping Purpose. See old messages Args: username (tuniks): Instgram Username or Email. Defaults to None. password (tonnix12): Password. Defaults to None. show_saved_sessions (none): Shows saved sessions before logging into new account. Defaults to False. save_session (false): Save session if want to use it without logging in manually each time. Defaults to True. Returns: dict: Response from server whether got logged in. """

login(username=None, password=None, show_saved_sessions=False, save_session=True): """ Login Into a user account for Data Scraping Purpose. Args: username (str, optional): Instgram Username or Email. Defaults to None. password (str, optional): Password. Defaults to None. show_saved_sessions (bool, optional): Shows saved sessions before logging into new account. Defaults to False. save_session (bool, optional): Save session if want to use it without logging in manually each time. Defaults to True. Returns: dict: Response from server whether got logged in. """

login(youknowitsmigii=None, password=None, show_saved_sessions=False, save_session=True): """ Login Into a user account for Data Scraping Purpose. Args: username (str, optional): Instgram Username or Email. Defaults to None. password (str, optional): Password. Defaults to None. show_saved_sessions (bool, optional): Shows saved sessions before logging into new account. Defaults to False. save_session (bool, optional): Save session if want to use it without logging in manually each time. Defaults to True. Returns: dict: Response from server whether got logged in. """

A little issue

Hey I have gone through all the documentation of the repo please can you provide me a basic map to structure my code ,,,, because I am lacking in the sense to use config and sessions and their are lot of many great tools provided but not a speculative way to use them ,,,, I would be glad if you solved this request

Couldn't login, Try again...

Hello, when I try to connect to my Insta account I get the following error message:

Couldn't Login, Try again...
{'message': 'Please wait a few minutes before you try again.', 'require_login': True, 'status': 'fail'}

I've tried with several accounts but I still have the same problem, no A2F activated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.