I Am A Coder 🗿
I Create Tools With Basic Python
Age : 15
Terminal User 💀
I am Not A Hacker 🤓
Thank you for visiting ❤️😊
A Python Script To Increase Instagram Followers ⬆️
License: GNU General Public License v3.0
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
It gives follow failed error after following some celebrities
I tried to execute the program by using this code python3 instafans.py
then I got this error
int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/user.py", line 189, in user_info_by_username
user = self.user_info_by_username_gql(username)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/user.py", line 142, in user_info_by_username_gql
return extract_user_gql(self.public_a1_request(f"/{username!s}/")["user"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/public.py", line 173, in public_a1_request
response = self.public_request(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/public.py", line 72, in public_request
return self._send_public_request(url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/public.py", line 106, in _send_public_request
expected_length = int(response.headers.get("Content-Length"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/friendships/61241301387/following/?rank_token=59256404594_8eebf9eb-f95a-4413-bd4c-3270ca45cded&search_surface=follow_list_page&includes_hashtags=true&enable_groups=true&query=&count=10000
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/private.py", line 298, in _send_private_request
response.raise_for_status()
File "/usr/local/lib/python3.11/dist-packages/requests/models.py", line 1021, 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/friendships/61241301387/following/?rank_token=59256404594_8eebf9eb-f95a-4413-bd4c-3270ca45cded&search_surface=follow_list_page&includes_hashtags=true&enable_groups=true&query=&count=10000
Status 400: Empty response message. Maybe enabled Two-factor auth?
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/private.py", line 298, in _send_private_request
response.raise_for_status()
File "/usr/local/lib/python3.11/dist-packages/requests/models.py", line 1021, 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/friendships/61241301387/following/?rank_token=59256404594_8eebf9eb-f95a-4413-bd4c-3270ca45cded&search_surface=follow_list_page&includes_hashtags=true&enable_groups=true&query=&count=10000
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/misbahskuy/Desktop/InstaFans/instafans.py", line 130, in <module>
celeb()
File "/home/misbahskuy/Desktop/InstaFans/instafans.py", line 82, in celeb
followings = api.user_following(user_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/user.py", line 550, in user_following
users = self.user_following_v1(user_id, amount)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/user.py", line 509, in user_following_v1
result = self.private_request(f"friendships/{user_id}/following/", params=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/private.py", line 445, in private_request
raise e
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/private.py", line 432, in private_request
self._send_private_request(endpoint, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/instagrapi/mixins/private.py", line 360, in _send_private_request
raise ClientBadRequestError(
instagrapi.exceptions.ClientBadRequestError: Unknown ({'message': '', 'response': <Response [400]>, 'status': 'fail'})
I changed the credentials.ini
file to my account name and password
hi dear i can not install Instagrapi
i have installed colorama
and requests easily but Instagrapi is ending in error
this is the error
Preparing metadata (setup.py) ... done
Collecting annotated-types>=0.4.0 (from pydantic==2.5.2->instagrapi)
Using cached annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
Collecting pydantic-core==2.14.5 (from pydantic==2.5.2->instagrapi)
Using cached pydantic_core-2.14.5.tar.gz (360 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [60 lines of output]
Collecting maturin<2,>=1
Using cached maturin-1.4.0.tar.gz (177 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting typing-extensions!=4.7.0,>=4.6.0
Using cached typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB)
Using cached typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Building wheels for collected packages: maturin
Building wheel for maturin (pyproject.toml): started
Building wheel for maturin (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for maturin (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [35 lines of output]
/data/data/com.termux/files/usr/tmp/pip-build-env-wupoesvs/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
corresp(dist, value, root_dir)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-311
creating build/lib.linux-aarch64-cpython-311/maturin
copying maturin/import_hook.py -> build/lib.linux-aarch64-cpython-311/maturin
copying maturin/__main__.py -> build/lib.linux-aarch64-cpython-311/maturin
copying maturin/__init__.py -> build/lib.linux-aarch64-cpython-311/maturin
running egg_info
creating maturin.egg-info
writing maturin.egg-info/PKG-INFO
writing dependency_links to maturin.egg-info/dependency_links.txt
writing requirements to maturin.egg-info/requires.txt
writing top-level names to maturin.egg-info/top_level.txt
writing manifest file 'maturin.egg-info/SOURCES.txt'
reading manifest file 'maturin.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.json' under directory 'src/python_interpreter'
writing manifest file 'maturin.egg-info/SOURCES.txt'
running build_ext
running build_rust
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for maturin
Failed to build maturin
ERROR: Could not build wheels for maturin, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
To tendo esse problema:
como resolvo?
![Screenshot_20230911_230230_Termux](https://github.com/TnYtCoder/InstaFans/assets/111387430/a352a425-79eb-4aad-8bba-c7ba749a5a72
/
Fica pedindo para instalar PIL...
Please when I try to run it says ;
Traceback (most recent call last):
File "/data/data/com.termux/files/home/InstaFans/instafans.py", line 1, in
import os, sys, requests, time, instagrapi
ModuleNotFoundError: No module named 'instagrapi'
Please I don't know anything on how to fix it please can you teach me how to solve this issue.
I do what you say but I am facing the same mistake again. Please make a few screen notes and show them to me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.