• December 2, 2024

Instabot Py Proxy

yurilaaziz/neo-instabot - GitHub

yurilaaziz/neo-instabot – GitHub

Neo-Instabot is an extremely light instagram bot that uses the undocumented Web API. Unlike other bots, does not require Selenium or a WebDriver. Instead, it interacts with the API over simple HTTP Requests. It runs on most systems, including Raspberry Pi.
Requirements
Python v3. 6 or greater
Pip v18 or greater
Quick Start
Make sure you have Python 3. 6 or above installed
python3 –version
On Windows you might have to use python without the version (3) suffix. Experienced users should use virtualenv.
Install from PyPi repository
python3 -m pip install neo-instabot
Start the bot
neo-instabot or python3 -m instabot
neo-instabot -c or python3 -m instabot -c
** Configuration ** ⚙️
By running neo-instabot, the Bot reads its configuration from in your current directory.
you can run the bot with a different configuration neo-instabot -c
Upgrade ⬆️
python3 -m pip install neo-instabot –no-cache-dir –upgrade
pip3 install neo-instabot –no-cache-dir –upgrade
Install methods
Recommended: From PyPi: (Stable)
From sources: (Bleeding edge)
python3 -m pip install git+
Parameters
Parameter
Type
Description
Default value
login
str
Your instagram username
password
Your instagram password
start_at_h
int
Start program at the hour
0
start_at_m
Start program at the min
end_at_h
End program at the hour
23
end_at_m
End program at the min
59
database
dict
Contains the database configuration
{“type”: “sql”, “connection_string”: “sqlite/{{login}}”}
session_file
change the name of session file so to avoid having to login every time. Set False to disable.
“ssion”
like_per_day
DEPRECATED, WILL BE REMOVED SOON, REPLACED BY like_per_run
like_per_run
Number of photos to like per day (over 1000 may cause throttling)
1000
media_max_like
Maximum number of likes on photos to like (set to 0 to disable)
media_min_like
Minimum number of likes on photos to like (set to 0 to disable)
follow_per_day
DEPRECATED, WILL BE REMOVED SOON, REPLACED BY follow_per_run
follow_per_run
Users to follow per day
follow_time
Seconds to wait before unfollowing
5 * 60 * 60
user_min_follow
Check user before following them if they have X minimum of followers. Set 0 to disable
user_max_follow
Check user before following them if they have X maximum of followers. Set 0 to disable
follow_time_enabled
bool
REMOVED, TO DISBALE Follow_time, just set it to 0

unfollow_per_day
DEPRECATED, WILL BE REMOVED SOON, REPLACED BY unfollow_per_run
unfollow_per_run
Users to unfollow per day
unfollow_recent_feed
If enabled, will populate database with users from recent feed and unfollow if they meet the conditions. Disable if you only want the bot to unfollow people it has previously followed.
True
unlike_per_day
DEPRECATED, WILL BE REMOVED SOON, REPLACED BY unlike_per_run
unlike_per_run
Number of media to unlike that the bot has previously liked. Set to 0 to disable.
time_till_unlike
How long to wait after liking media before unliking them.
3 * 24 * 60 * 60 (3 days)
comments_per_day
Comments to post per day
comment_list
[[str]]
List of word lists for comment generation. @username@ will be replaced by the media owner’s username
[[‘this’, ‘your’], [‘photo’, ‘picture’, ‘pic’, ‘shot’], [‘is’, ‘looks’, ‘is really’], [‘great’, ‘super’, ‘good’], [‘. ‘, ‘… ‘, ‘! ‘, ‘!! ‘]]
tag_list
[str]
Tags to use for finding posts by hasthag or location(l:locationid from e. g. )
[‘cat’, ‘car’, ‘dog’, ‘l:212999109’]
keywords
Words to use for finding profiles with username or biography contain these words
[]
tag_blacklist
Tags to ignore when liking posts
user_blacklist
{str: str}
Users whose posts to ignore. Example: {“username”: “”, “username2”: “”} type only the key and leave value empty — it will be populated with userids on startup.
{}
max_like_for_one_tag
How many media of a given tag to like at once (out of 21)
5
unfollow_break_min
Minimum seconds to break between unfollows
15
unfollow_break_max
Maximum seconds to break between unfollows
30
log_mod
Logging target (0 log to console, 1 log to file, 2 no log. )
proxies (deprecated)
Access instagram through a proxy. {“”:”IP:PORT”, “”:”IP:PORT”} (host:port or user:password@host:port)
proxy_ip
HTTP Proxy IP address
proxy_port
HTTP Proxy Port
proxy_user
HTTP Proxy username
proxy_password
HTTP Proxy password
unfollow_not_following
Unfollow Condition: Unfollow those who do not follow you back
unfollow_inactive
Unfollow Condition: Unfollow those who have not posted in a while (inactive)
unfollow_probably_fake
Unfollow Condition: Unfollow accounts which skewed follow/follower ratio (probably fake)
unfollow_selebgram
Unfollow Condition: Unfollow (celebrity) accounts with too many followers and not enough following
False
unfollow_everyone
Unfollow Condition: Will unfollow everyone in unfollow queue (wildcard condition)
Contributing
Please feel free to contribute and submit PR requests. All help is appreciated. Look for issues with the label needs help.
Instabot with yaml config
By default, instabot looks for configuration file ()
it could be changed by exporting environment varibale with the full path
export

login: “username”
password: “password”
debug: 1
#Send INFO notification to Telegram channel
egram:
level: INFO
class: egramHandler
token: __YOUR__CHANNEL__TOKEN__
chat_id: __CHAT_ID__
staBot. handlers:
– telegram
– console
follow_time: 1200
unfollow_per_day: 1000
follow_per_day: 1000
Create Telegram bot for instabot
Blogs
neo-instabot Rework: What’s changed & how to configure the Telegram handler
What’s new in the Instagram bot 0. 5. 2
Community
Telegram Group
New Facebook Group
instabot-py - PyPI

instabot-py – PyPI

Project description
is an extremely light instagram bot that uses the undocumented Web API. Unlike other bots, does not require Selenium or a WebDriver. Instead, it interacts with the API over simple HTTP Requests. It runs on most systems, including Raspberry Pi.
Requirements
Python v3. 6 or greater
Pip v18 or greater
Quick Start
Make sure you have Python 3. 6 or above installed
python3 –version
On Windows you might have to use python without the version (3) suffix. Experienced users should use virtualenv.
If your version is below 3. 6, we recommend you install the latest Python 3. 7 or 3. 8
Python on Windows
Python on Mac
Python on Raspberry Raspbian / Debian / Ubuntu
Installation
From PyPi (Stable):
python3 -m pip install instabot-py
From sources (Bleeding edge):
python3 -m pip install git+
Configuration ⚙️
Run instabot-py –create-config command and a default configuration will be created in your current directory: It should be modified according the needs.
You can also run the bot with a different configuration file using -c flag: instabot-py -c
Start the bot
instabot-py or python3 -m instabot_py
instabot-py -c or python3 -m instabot_py -c
The file contains records of posts the bot has liked, and the users who has been followed/unfollowed.
The ssion file stores your session with Instagram to avoid re-logins each time you start the bot.
Upgrade ⬆️
python3 -m pip install instabot-py –no-cache-dir –upgrade
pip3 install instabot-py –no-cache-dir –upgrade
Parameters
Parameter
Type
Description
Default value
login
str
Your instagram username
password
Your instagram password
start_at_h
int
Start program at the hour
0
start_at_m
Start program at the min
end_at_h
End program at the hour
23
end_at_m
End program at the min
59
debug
Enable (1) or disable (0) debug mode
1
database
dict
Contains the database configuration
{“type”: “sql”, “connection_string”: “sqlite/{{login}}”}
session_file
change the name of session file so to avoid having to login every time. Set False to disable.
“ssion”
user_agent
Custom User Agent to look like a real browser
None
like_per_day
DEPRECATED, WILL BE REMOVED SOON, REPLACED BY like_per_run
like_per_run
Number of photos to like per day (over 1000 may cause throttling)
296
like_followers_per_run
Number of your old followers to like their last photo per day (set to 0 to disable)
media_max_like
Maximum number of likes on photos to like (set to 0 to disable)
media_min_like
Minimum number of likes on photos to like (set to 0 to disable)
follow_per_day
DEPRECATED, WILL BE REMOVED SOON, REPLACED BY follow_per_run
follow_per_run
Users to follow per day
156
follow_time
Seconds to wait before unfollowing
5 * 60 * 60
follow_attempts
Attempts to make to follow someone
10
user_min_follow
Check user before following them if they have X minimum of followers. Set 0 to disable
user_max_follow
Check user before following them if they have X maximum of followers. Set 0 to disable
follow_time_enabled
bool
REMOVED, TO DISBALE Follow_time, just set it to 0

unfollow_per_day
DEPRECATED, WILL BE REMOVED SOON, REPLACED BY unfollow_per_run
unfollow_per_run
Users to unfollow per day
199
unfollow_recent_feed
If enabled, will populate database with users from recent feed and unfollow if they meet the conditions. Disable if you only want the bot to unfollow people it has previously followed.
True
unlike_per_day
DEPRECATED, WILL BE REMOVED SOON, REPLACED BY unlike_per_run
unlike_per_run
Number of media to unlike that the bot has previously liked. Set to 0 to disable.
time_till_unlike
How long to wait after liking media before unliking them.
3 * 24 * 60 * 60 (3 days)
comments_per_day
Comments to post per day
comment_list
[[str]]
List of word lists for comment generation. @username@ will be replaced by the media owner’s username
[[‘this’, ‘your’], [‘photo’, ‘picture’, ‘pic’, ‘shot’], [‘is’, ‘looks’, ‘is really’], [‘great’, ‘super’, ‘good’], [‘. ‘, ‘… ‘, ‘! ‘, ‘!! ‘]]
tag_list
[str]
Tags to use for finding posts by hasthag or location(l:locationid from e. g. )
[‘cat’, ‘car’, ‘dog’, ‘l:212999109’]
keywords
Words to use for finding profiles with username or biography contain these words
[]
tag_blacklist
Tags to ignore when liking posts
user_blacklist
{str: str}
Users whose posts to ignore. Example: {“username”: “”, “username2”: “”} type only the key and leave value empty — it will be populated with userids on startup.
{}
max_like_for_one_tag
How many media of a given tag to like at once (out of 21)
5
unfollow_break_min
Minimum seconds to break between unfollows
15
unfollow_break_max
Maximum seconds to break between unfollows
30
log_mod
Logging target (0 log to console, 1 log to file, 2 no log. )
proxies
Access instagram through a proxy. {“_proxy”:”IP:PORT”, “_proxy”:”IP:PORT”} (host:port or user:password@host:port)
unfollow_not_following
Unfollow Condition: Unfollow those who do not follow you back
unfollow_inactive
Unfollow Condition: Unfollow those who have not posted in a while (inactive)
unfollow_probably_fake
Unfollow Condition: Unfollow accounts which skewed follow/follower ratio (probably fake)
unfollow_selebgram
Unfollow Condition: Unfollow (celebrity) accounts with too many followers and not enough following
False
unfollow_everyone
Unfollow Condition: Will unfollow everyone in unfollow queue (wildcard condition)
Telegram channel for instabot-py’s logs
Create Telegram bot
Add the following settings into the configuration:

# Send INFO notification to Telegram channel
staBot. handlers:
– telegram
– console
rsion: 1
logging. disable_existing_loggers: False
INFO
format: ‘%(asctime)s – {{login}} -%(name)s -%(levelname)s -%(message)s’
egram:
level: INFO
class: egramHandler
token: __YOUR__CHANNEL__TOKEN__
chat_id: __CHAT_ID__
formatter: simple
nsole:
level: DEBUG
class: reamHandler
stream: ext
Community
Telegram Group
Contributing
Please feel free to contribute and submit PR requests. All help is appreciated. Look for issues with the label needs help. If you want to be in the developer team, please email me.
Download files
Download the file for your platform. If you’re not sure which to choose, learn more about installing packages.
Files for instabot-py, version 0. 7. 18
Filename, size
File type
Python version
Upload date
Hashes
(26. 9 kB)
Wheel
py3
Apr 16, 2020
View
(26. 6 kB)
Source
View
How to configure proxies in instapy - Stack Overflow

How to configure proxies in instapy – Stack Overflow

I have a fully working instagram bot which is made using instapy and it was working fine,
I wanted to add a proxy to instagram so I added this code
session = InstaPy(username=insta_username,
password=insta_password, proxy_username=”, proxy_password=”,
proxy_address=’8. 8. 8′,
proxy_port=8080,
headless_browser=False)
with smart_run(session):
#code here
I am using a premium proxy so that is not a problem for sure,
I have read from the documentation to add this block of code, but I am gettig this error now
Custom workspace set: “CUsers//Nikhil//Downloads//forthemodernhouses//forthemodernhouses/InstaPy”:]
to be targetted
already dmmed
[”, ‘aceservices2021’, ‘inmovidal’, ‘gsmwindowsltd’, ‘braithwaite_gateway’, ‘fangting_properties’]
final to be dmmed
InstaPy Version: 0. 6. 13. _.. _.
Workspace in use: “CUsers//Nikhil//Downloads//forthemodernhouses//forthemodernhouses/InstaPy”
WARNING [2021-05-23 12:39:53] [forthemodernhouses] Proxy Authentication is not working anymore due to the Selenium bug report: WARNING [2021-05-23 12:39:55] [forthemodernhouses] Unable to proxy authenticate
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2021-05-23 12:39:55] [forthemodernhouses] Session started!
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
the proxy requires a authentication, so ive added proxy username and password, but as the error says selenioum does not support it, So is there any other way I can add the proxy(not manually), then how

Frequently Asked Questions about instabot py proxy

Leave a Reply