Giter VIP home page Giter VIP logo

new92 / igfi Goto Github PK

View Code? Open in Web Editor NEW
169.0 9.0 52.0 3.14 MB

πŸ€– IGFI: Instagram Followers Increaser πŸ“ˆ | Written in Python 🐍 | Don't forget to ⭐ the repo !

Home Page: https://github.com/new92/IGFI

License: MIT License

Python 99.14% Dockerfile 0.86%
instagram python python-3 python3 instagram-followers bot instagram-bot github automated python-script script automation instagram-api instagram-scraper igfi

igfi's Issues

Error

Hi, since last week i got this error, i tried with all 3 versions, did few tests but it doesn't work.
I need help with that.
Screenshot 2023-09-04 203022

A Error.

I create this instagram acc 1 week ago,i got this error after i follow some artists, screenshot is below;
errr

?????

Wtf i dont understand
image

error windows 11

I am using a laptop on Windows 11 and I received this error when executing the program
Traceback (most recent call last):
File "C:\Users\rafal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\instagrapi\mixins\private.py", line 298, in _send_private_request
response.raise_for_status()
File "C:\Users\rafal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/friendships/create/787132/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\rafal\OneDrive\Documents\GitHub\IGFI\igfi.py", line 646, in
main(username=args.username.strip().lower(), password=args.password.strip(), session=args.session.replace('\', '/'))
File "c:\Users\rafal\OneDrive\Documents\GitHub\IGFI\igfi.py", line 400, in main
client.user_follow(users[NAMES[j]])
File "C:\Users\rafal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\instagrapi\mixins\user.py", line 741, in user_follow
result = self.private_request(f"friendships/create/{user_id}/", data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rafal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\instagrapi\mixins\private.py", line 445, in private_request
raise e
File "C:\Users\rafal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\instagrapi\mixins\private.py", line 432, in private_request
self._send_private_request(endpoint, **kwargs)
File "C:\Users\rafal\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\instagrapi\mixins\private.py", line 323, in _send_private_request
raise LoginRequired(response=e.response, **last_json)
instagrapi.exceptions.LoginRequired: login_required

Error

Discussed in #33

Originally posted by ZD96 August 25, 2023
Hi, I did a few tests with V1, 2 and 3 and i always got this error, am i doing something wrong?
Screenshot 2023-08-24 155901

Need Help

I did Cd v3 then python3v3.py

and then filled my insta name and password but this popped up

Instaloader.exceptions.QueryReturnedNotFoundException: JSON Query to accounts/login/: Could not find "window._sharedData" in html response.

Requirement

Need Connection Retries and Not Exit:

When there is a Network issue, the script exits saying "ConnectionError", Is there any way I can make It retry connection rather than exiting? I've tried my best to no avail.

Imaginary directory

Describe the bug
Where this imaginary Directory Path you speak of. for the session, Ive added The mozilla Profile it creates a session json file and still says doesn't exists on windows 11?

error

WARNING: The candidate selected for download or install is a yanked version: 'requests' candidate (version 2.32.0 at https://files.pythonhosted.org/packages/24/e8/09e8d662a9675a4e4f5dd7a8e6127b463a091d2703ed931a64aa66d00065/requests-2.32.0-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.8))
Reason for being yanked: Yanked due to conflicts CVE-2024-35195 mitigation
Downloading requests-2.32.0-py3-none-any.whl (63 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.7/63.7 kB 6.1 MB/s eta 0:00:00
Downloading rich-12.6.0-py3-none-any.whl (237 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 237.5/237.5 kB 218.8 kB/s eta 0:00:00
Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Downloading pydantic-1.9.0-py3-none-any.whl (140 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.3/140.3 kB 136.3 kB/s eta 0:00:00
Downloading pycryptodomex-3.14.1-cp35-abi3-manylinux2010_x86_64.whl (2.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 113.8 kB/s eta 0:00:00
Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.1/51.1 kB 172.6 kB/s eta 0:00:00
Building wheels for collected packages: instagrapi, instaloader
Building wheel for instagrapi (setup.py) ... done
Created wheel for instagrapi: filename=instagrapi-1.16.17-py3-none-any.whl size=93931 sha256=1d72581b2d3c01067860711f20a489d0edac7321fac4b9804911d06506e1db05
Stored in directory: /root/.cache/pip/wheels/58/01/87/183dc162122dc0c403bc000fd4f1888f3bc530ee2896a7acab
Building wheel for instaloader (setup.py) ... done
Created wheel for instaloader: filename=instaloader-4.9.5-py3-none-any.whl size=62291 sha256=0a95ea007fed15b37c98694c5154f4360cedb655315b9bdb0c10210ff9c9d703
Stored in directory: /root/.cache/pip/wheels/66/43/da/6e2b0644c62ebe5fa0ced40a677c3e24cc98d6bbe52bf54927
Successfully built instagrapi instaloader
Installing collected packages: commonmark, argparse, rich, requests, pydantic, pycryptodomex, instaloader, instagrapi
Attempting uninstall: rich
Found existing installation: rich 13.3.1
ERROR: Cannot uninstall rich 13.3.1, RECORD file not found. Hint: The package was installed by debian.

Cookie Import Failed

I get an error when running cookies.py

image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Version: Browser and Windows latest versions

I have Firefox installed and it looks like theres no session file created.

Issue with OSX

I'm using OSX Maverick with python3.11.5 on bash and the script after asking me the questions where I have to reply "yes" doesn't start and I got this error:

Traceback (most recent call last):
File "/Users/tommy/Desktop/IGFI/scripts/igfi.py", line 659, in
main(username=str(args.username).strip().lower(), sessionfile=str(args.sessionfile).replace('\', '/'))
File "/Users/tommy/Desktop/IGFI/scripts/igfi.py", line 413, in main
client.user_follow(users[NAMES[j]])
File "/usr/local/lib/python3.11/site-packages/instagrapi/mixins/user.py", line 735, in user_follow
assert self.user_id, "Login required"

NameError: name 'colorama' is not defined

Traceback (most recent call last):
File "C:\dev\py\IGFollowersIncreaser\InstagramFollowers\V3\mainV3.py", line 101, in
elif platform.system() == 'Windows':
^^^^^^^^
NameError: name 'platform' is not defined

auth problem

On linux i get authentication error even after generating the cookie. below is the error log:

`
Status 429: Too many requests
Ignore 429: Continue login
Traceback (most recent call last):
File "/tmp/IGFI/venv/lib/python3.10/site-packages/instagrapi/mixins/private.py", line 298, in _send_private_request
response.raise_for_status()
File "/tmp/IGFI/venv/lib/python3.10/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/accounts/login/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/IGFI/igfi.py", line 648, in
main(username=args.username.strip().lower(), password=args.password.strip(), session=args.session.strip().replace('\', '/'))
File "/tmp/IGFI/igfi.py", line 348, in main
login = client.login(username, password)
File "/tmp/IGFI/venv/lib/python3.10/site-packages/instagrapi/mixins/auth.py", line 391, in login
logged = self.private_request("accounts/login/", data, login=True)
File "/tmp/IGFI/venv/lib/python3.10/site-packages/instagrapi/mixins/private.py", line 445, in private_request
raise e
File "/tmp/IGFI/venv/lib/python3.10/site-packages/instagrapi/mixins/private.py", line 432, in private_request
self._send_private_request(endpoint, **kwargs)
File "/tmp/IGFI/venv/lib/python3.10/site-packages/instagrapi/mixins/private.py", line 354, in _send_private_request
raise UnknownError(**last_json)
instagrapi.exceptions.UnknownError: You'll need to update Instagram to the latest version before you can use the app.
`

I got this error on windows 11

I am using my windows 11 laptop and everything started working, but when I answered the last question I got this error message:

Traceback (most recent call last):
File "C:\Users\Acer\Downloads\IGFI\scripts\igfi.py", line 659, in
main(username=str(args.username).strip().lower(), sessionfile=str(args.sessionfile).replace('\', '/'))
File "C:\Users\Acer\Downloads\IGFI\scripts\igfi.py", line 413, in main
client.user_follow(users[NAMES[j]])
File "C:\Users\Acer\AppData\Local\Programs\Python\Python312\Lib\site-packages\instagrapi\mixins\user.py", line 735, in user_follow
assert self.user_id, "Login required"
AssertionError: Login required

C:\Users\Acer\Downloads\IGFI\scripts>

i think im dumb

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • firefox[e.g. chrome, safari]
  • Version latest [e.g. 22]
    image

Docker

Please add docker support

stat: path should be string, bytes, os.PathLike or interger, not NoneType

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to V3 folder & run the script
  2. put the 'yes' input when the 2nd question pop-up
  3. See error --> stat: path should be string, bytes, os.PathLike or interger, not NoneType

Expected behavior
i can run the script as per said

Screenshots
image

Desktop (please complete the following information):

  • OS: window 10
  • Browser: None (cmd in window)
  • Version V3

Additional context
Add any other context about the problem here.

No Firefox cookies.sqlite file found

(igfi) C:\Users\hoto\IGFI>python3 cookies.py
No Firefox cookies.sqlite file found. Use -c COOKIEFILE.

(igfi) C:\Users\hoto\IGFI>python3 cookies.py -c /path/to/your/cookies.sqlite
Using cookies from /path/to/your/cookies.sqlite.
Cookie import failed: unable to open database file

(igfi) C:\Users\hoto\IGFI>python3 cookies.py -c C:\Users\YourUsername\AppData\Roaming\Mozilla\Firefox\Profiles\YourProfileName\cookies.sqlite
Using cookies from C:\Users\YourUsername\AppData\Roaming\Mozilla\Firefox\Profiles\YourProfileName\cookies.sqlite.
Cookie import failed: unable to open database file

(I did from the first step in windows and I'm not sure why its happening, what do i do?

-login required to get a profile's followers.

Traceback (most recent call last):
File "/home/dizzy/IGFollowersIncreaser/InstagramFollowers/V1/mainV1.py", line 819, in
main()
File "/home/dizzy/IGFollowersIncreaser/InstagramFollowers/V1/mainV1.py", line 375, in main
FOLLOWERS = [follower.username for follower in profile.get_followers()]
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instaloader/structures.py", line 1053, in get_followers
raise LoginRequiredException("--login required to get a profile's followers.")
instaloader.exceptions.LoginRequiredException: --login required to get a profile's followers.

what should I do? im using Kali

Enhancement: Improved Error Handling for User Input

Describe the bug
-> Currently, if a user enters a non-numeric string as input, a ValueError is raised, leading to unexpected program termination.

Expected behavior
-> I suggest implementing a more robust user input mechanism using a try and except block. With this enhancement, the program will repeatedly prompt the user for a valid numeric input until one is provided.

Location of Issue

  • The suggested change should be applied in the following location:
    -> IGFollowersIncreaser/InstagramFollowers/V3/mainV3.py
    -> LINE 69

BEFORE

opt=int(input("[>] Please enter a number (from the above ones): "))

AFTER-FIXED

no_value_err = False
while not no_value_err:
    try:
        opt = int(input("[>] Please enter a number (from the above ones): "))
        no_value_err = True
    except ValueError:
        print ("[!] Please enter a valid number.")

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.