Giter VIP home page Giter VIP logo

neo-instabot's People

Contributors

adelra avatar artemdumanov avatar bruvv avatar cclauss avatar chipwolf avatar conr avatar darksunium avatar dimisdas avatar drepekh avatar ivanchalov avatar joshtristram avatar kemong avatar levpasha avatar macd2 avatar maik93 avatar maxkrivich avatar mike97m avatar mmaton avatar nekflamm avatar nickgryg avatar nicolastobo avatar nikolasvargas avatar ohld avatar rjmayott avatar saphiresouldier avatar tonywangcn avatar ugurozturk avatar unformatt avatar ycodryn avatar yurilaaziz 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

Watchers

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

neo-instabot's Issues

Calculation of time in day

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
Linux *** 21-Ubuntu SMP Tue Aug 28 10:23:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

Python 3.6.8

Pip Version?

pip 9.0.1

Instabot Version?

Installed version 0.5.9

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

When we indicate a start and end time, the like_delay has to consider only the interval. Currently if the bot doesn't run 24 hours a day, the maximum number of likes will never be reached.

change suggestion

# ( he - hs) * 60 * 60 - ms * me
# ( 20 - 8 ) * 60 * 60 - 20 + 40 
self.time_in_day = ( self.end_at_h - self.start_at_h ) * 60 * 60 - self.start_at_m + self.end_at_m

self.like_per_run = int(self.config.get("like_per_run"))
    if self.like_per_run > 0:
        self.like_delay = self.time_in_day / self.like_per_run

https://github.com/yurilaaziz/instabot.py/blob/7633395fc7e29109037ee8a4d2ef8655926deec6/instabot_py/instabot.py#L101

the account doesn't meet requirements

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

All up to date, installed today

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Darwin brick.lan 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

Python 3.7.2

Pip Version?

pip 18.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)

Instabot Version?

Include here the response of 'instabot-py --version'

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

2019-10-01 15:36:13,170 - - InstaBot - DEBUG - Not following , the account doesn't meet requirements

see above

Config

follow_time: 604800
like_per_run: 45
comments_per_run: 30
max_like_for_one_tag: 130
follow_per_run: 45
follow_time: 36000
unfollow_per_run: 45
unfollow_break_min: 3
unfollow_break_max: 15
unfollow_selebgram: false
unfollow_probably_fake: true
unfollow_inactive: true
unfollow_recent_feed: false
unfollow_not_following: true
tag_list: ['mytag1', 'mytag2']
comment_list: [['this', 'your'], ['photo', 'picture', 'pic', 'shot'], ['is', 'looks', 'is really'], ['great', 'super', 'good'], ['.', '...', '!', '!!']]
user_min_follow: 0
user_max_follow: 3000
log_mod: 1
start_at_h: 10
start_at_m: 0
end_at_h: 21
end_at_m: 0

Not following account, but should. Account meet following criteria. It was no more than 3k followed accounts. Also time between liking/commenting another pictures is ~30min. How to change it to be ie. 5min?

Please fix @username@

It's giving me this following error on the latest version

Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/neo-instabot", line 10, in sys.exit(main())
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/instabot/main.py", line 345, in main
bot.run() File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/instabot/bot.py", line 740, in run self.new_auto_mod_comments(media) File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/instabot/bot.py", line 1012, in new_auto_mod_comments
comment_text = comment_text.replace("@username@", media["node"]["owner"]["username"]) KeyError: 'username'

Not following/config location?

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • [ X] I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • [ X] Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • [X ] Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Python Version Requirement

  • [X ] I am using Python 3.6 or above

Exact Python Version?

Include here the response of 'python --version' or 'python3 --version'

Pip Version?

Include here the response of 'pip --version' or 'pip3 --version'
```pip 19.2.3

#### Instabot Version?
```Latest - Installed version 0.6.0
Include here the response of 'instabot-py --version'

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • [ X] neo-instabot --login LOGIN --password PASSWORD -v
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

What i thought was the default config - i edited but it appears that it was worng.

Where is the location on windows for the config and what is the name.

Also script is also just liking stuff but not following.

Include the contents of the error.log here (if applicable). < REPLACE THIS TEXT

Config

Ensure that you specify the configuration file in the command line.
Ensure that the default file instabot.config.yml contains only common settings if you use multiple accounts.
Include the contents of your config here (instabot-py -c config.yml --dump) (REMOVE YOUR USERNAME AND PASSWORD!) (if applicable). < REPLACE THIS TEXT

[Request] Add option to specify user agent

With the bot generating a random user-agent instagram seems to detect it fairly quickly. However, by specifying the user-agent of the broswer i generally sign into the account with instagram does not detect the bot nearly as quickly, generally only if it runs for an extended period of time.

The only problem with this is whenever there is an update, the user-agent in the python file must be changed, so I'd like to request an option to specify it in the config instead.

New Feature request

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

latest

Pip Version?

latest

Instabot Version?

0.6'

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

option for following or liking accounts which follow a related account to tag list
smtth like Follow followers/followings of target accounts
or
Follow users that interacted with posts on target accounts

someone who is engaged with target tag on posts is great

Config

Ensure that you specify the configuration file in the command line.
Ensure that the default file instabot.config.yml contains only common settings if you use multiple accounts.
Include the contents of your config here (instabot-py -c config.yml --dump) (REMOVE YOUR USERNAME AND PASSWORD!) (if applicable). < REPLACE THIS TEXT

Bot got detected

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

Include here the response of 'python --version' or 'python3 --version'

Pip Version?

Include here the response of 'pip --version' or 'pip3 --version'

Instabot Version?

Include here the response of 'instabot-py --version'

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

Years old accounts and just do 200 like per day in a VPS and account got blocked after couple hours, 

Config



Always same problem...

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • [x ] I have searched for other issues with the same problem. (including #1153)

Hosting

  • [x ] Are you hosting the bot on a VPS or other Cloud hosting?
  • If so; have you tried running the code on your local machine?

Select one:

  • Bug
  • Feature Request
  • [x ] Technical Help
  • Other

Operating System? (include version)

  • MAC
  • Windows
  • [x ] Linux
  • Android

Python Version?

  • 2.x
  • [x ] 3.x (3.6)

Description of your issue

sin titulo

Config

Same as original only change username and password

How to use persian tags and comments in instabot?

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

3.7
Include here the response of 'python --version' or 'python3 --version'
python --version Python 3.7.4

Pip Version?

Include here the response of 'pip --version' or 'pip3 --version'
`pip --version
pip 19.2.3 from c:\python37\lib\site-packages\pip (python 3.7)`

#### Instabot Version?

Include here the response of 'instabot-py --version'
Installed version 0.6.0

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

i personalized configuration file and want to tag and comment in persian but it converts to unreadable characters. please tell me how can i use persian tags and persian words in comments

Config

---
accept_language: en-US,en;q=0.5
login : "deleted"
password : "deleted"
debug: 1
#Send INFO notification to Telegram channel 
logging.handlers.telegram:
  level: INFO
  class: telegram_handler.TelegramHandler
  token: deleted
  chat_id: deleted
logging.loggers.InstaBot.handlers:
  - telegram
  - console
follow_time: 604800
like_per_day: 709
comments_per_day: 50
max_like_for_one_tag: 20
follow_per_day: 250
follow_time: 36000
unfollow_per_day: 247
unfollow_break_min: 3
unfollow_break_max: 17
unfollow_selebgram: false
unfollow_probably_fake: true
unfollow_inactive: true
unfollow_recent_feed: false
comment_list:
- - این
  - یک
- - photo
  - picture
  - pic
  - shot
  - snapshot
- - is
  - looks
  - feels
  - is really
- - great
  - super
  - good
  - very good
  - good
  - wow
  - WOW
  - cool
  - GREAT
  - magnificent
  - magical
  - very cool
  - stylish
  - beautiful
  - so beautiful
  - so stylish
  - so professional
  - lovely
  - so lovely
  - very lovely
  - glorious
  - so glorious
  - very glorious
  - adorable
  - excellent
  - amazing
- - .
  - ..
  - '...'
  - '!'
  - '!!'
  - '!!!'
tag_list:
- دوربین
- دوربین_مداربسته
- dog

Bot auto kill after few seconds

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'
``` 5.0.0-25-generic #26~18.04.1-Ubuntu SMP Thu Aug 1 13:51:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


#### Python Version Requirement
- [V] I am using Python 3.6 or above
python3.7 minimal

#### Exact Python Version?

Include here the response of 'python --version' or 'python3 --version'

#### Pip Version?
```pip 9.0.1 from /home/barryallen/Project/venv/lib/python3.7/site-packages (python 3.7)

Include here the response of 'pip --version' or 'pip3 --version'
```pip 9.0.1 from /home/barryallen/Project/venv/lib/python3.7/site-packages (python 3.7)


#### Instabot Version?

Include here the response of 'instabot-py --version'

Installed version 0.6.0


#### How you use the instabot
- [X] instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
- [ ] instabot-py --login LOGIN --password PASSWORD
- [ ] instabot-py 
- [ ] example.py (Deprecated, please install newer version) 


#### Description of your issue

```auto kill after few secconds:
terminal output: 
2019-08-25 01:15:33,531 - barry_2212 - InstaBot - INFO - Followed: https://www.instagram.com/meatlessjerky/ #1.
Killed



Include the contents of the error.log here (if applicable). < REPLACE THIS TEXT

Config

login : "USER"
password : "PASSWORD"
debug: 0
follow_time: 604800
like_per_day: 800
comments_per_day: 2
comment_list: ['Nice shot! @{}','I love your profile! @{}','Wonderful :thumbsup:','Just incredible :open_mouth:','What camera did you use @{}?','Love your posts @{}',':raised_hands: Yes!']
tag_list: ['filmisnotdead','filmphotography','filmphoto','35mm','analogfilm']
max_like_for_one_tag: 200
follow_per_day: 260
follow_time: 36000
#unfollow_per_day: 247
#unfollow_break_min: 3
#unfollow_break_max: 17
#unfollow_selebgram: false
#unfollow_probably_fake: true
#unfollow_inactive: true
#unfollow_recent_feed: false
Ensure that you specify the configuration file in the command line.
Ensure that the default file instabot.config.yml contains only common settings if you use multiple accounts.
Include the contents of your config here (instabot-py -c config.yml --dump) (REMOVE YOUR USERNAME AND PASSWORD!) (if applicable). < REPLACE THIS TEXT

Start script

I want to share my instabot start script (just edit few strings, and rename script to "instabot"):

#!/bin/sh

login="--login YOURLOGIN"
pass="--password YOURPASS"
config="-c /PATH-TO/instabot.config.yml"
session="/PATH-TO/YOUR.session"
instabot="/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/instabot-py -v"
python="/opt/local/bin/python3.7"

pid=$(ps -ax | grep instabot | grep py | awk '{ print $1 }')
kill="/bin/kill"

if (test "$1" = "--kill") || (test "$1" = "-k")
then
if (test "$pid" > "0")
then
$kill $pid
echo pid "$pid" - stopped
exit
else
echo no pid, already stopped
exit
fi
fi

if (test "$1" = "--start-daemon") || (test "$1" = "-d")
then
if (test "$pid" > "0")
then
echo pid "$pid" - already started
else
echo starting as daemon
$python $instabot $login $pass $config &gt; "/private/var/Log/instabot/$(date +%dd-(%H)).log" &
exit
fi
fi

if (test "$1" = "--start") || (test "$1" = "-s")
then
if (test "$pid" > "0")
then
echo pid "$pid" - already started
else
echo starting in terminal
$python $instabot $login $pass $config &gt; "/private/var/Log/instabot/$(date +%dd-(%H)).log"
exit
fi
fi

if (test "$1" = "--restart") || (test "$1" = "-r")
then
if (test "$pid" > "0")
then
$kill $pid
echo restarting
$python $instabot $login $pass $config &gt; "/private/var/Log/instabot/$(date +%dd-(%H)).log" &
exit
else
echo instabot - no running process.
exit
fi
fi

if (test "$1" = "--help") || (test "$1" = "-h")
then
echo "help:"
echo " -s, --start Start instabot"
echo " -d, --start-daemon Start instabot standalone"
echo " -n, --newstart Re-login and start"
echo " -k, --kill Kill instabot"
echo " -r, --restart Restart instabot"
echo " -c, --check Check instabot"
echo " -h, --help Help"
exit
fi

if (test "$1" = "--check") || (test "$1" = "-c")
then
if (test "$pid" > "0")
then
echo "Instabot is running"
echo "pid:" "$pid"
exit
else
echo "Instabot is not running"
fi
fi

if (test "$1" = "--newstart") || (test "$1" = "-n")
then
if (test "$pid" > "0")
then
$kill $pid
rm $session
echo Session file removed
echo starting
$python $instabot $login $pass $config &gt; "/private/var/Log/instabot/$(date +%dd-(%H)).log" &
exit
else
rm $session
echo Session file removed
echo starting
$python $instabot $login $pass $config &gt; "/private/var/Log/instabot/$(date +%dd-(%H)).log" &
exit
fi
else
echo "Argument required!"
echo "help:"
echo " -s, --start Start instabot"
echo " -d, --start-daemon Start instabot standalone"
echo " -n, --newstart Re-login and start"
echo " -k, --kill Kill instabot"
echo " -r, --restart Restart instabot"
echo " -c, --check Check instabot"
echo " -h, --help Help"
exit
fi

json decoder error

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • [x ] Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Linux instanceig 5.3.0-1029-gcp #31~18.04.1-Ubuntu SMP Mon Jun 22 15:24:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

Include here the response of 'python --version' or 'python3 --version'

Python 3.6.9

Pip Version?

Include here the response of 'pip --version' or 'pip3 --version'

pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

Instabot Version?

Include here the response of 'instabot-py --version'

Installed version 0.6.0

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

Include the contents of the error.log here (if applicable). < REPLACE THIS TEXT

Config

Ensure that you specify the configuration file in the command line.
Ensure that the default file instabot.config.yml contains only common settings if you use multiple accounts.
Include the contents of your config here (instabot-py -c config.yml --dump) (REMOVE YOUR USERNAME AND PASSWORD!) (if applicable). < REPLACE THIS TEXT

Traceback (most recent call last):
File "/home/puscasu_and/.local/bin/neo-instabot", line 11, in
sys.exit(main())
File "/home/puscasu_and/.local/lib/python3.6/site-packages/instabot/main.py", line 330, in main
bot = InstaBot(config=config)
File "/home/puscasu_and/.local/lib/python3.6/site-packages/instabot/bot.py", line 198, in init
self.login()
File "/home/puscasu_and/.local/lib/python3.6/site-packages/instabot/bot.py", line 301, in login
loginResponse = login.json()
File "/home/puscasu_and/.local/lib/python3.6/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

No work

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • [x ] Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • [x ] If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • [x ] Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Python Version Requirement

  • [x ] I am using Python 3.6 or above

Exact Python Version?

python 3.7

Pip Version?

19.1.1

Instabot Version?

lastest``

#### How you use the instabot
- [ ] instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
- [ ] instabot-py --login LOGIN --password PASSWORD
- [x ] instabot-py 
- [ ] example.py (Deprecated, please install newer version) 


#### Description of your issue

Traceback (most recent call last):
File "c:\users\juan rojas\appdata\local\programs\python\python37\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\users\juan rojas\appdata\local\programs\python\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\JUAN ROJAS\AppData\Local\Programs\Python\Python37\Scripts\neo-instabot.exe_main
.py", line 5, in
File "c:\users\juan rojas\appdata\local\programs\python\python37\lib\site-packages\instabot_main
.py", line 27, in
from instabot import InstaBot
ImportError: cannot import name 'InstaBot' from 'instabot' (c:\users\juan rojas\appdata\local\programs\python\python37\lib\site-packages\instabot_init_.py)


#### Config

Ensure that you specify the configuration file in the command line.
Ensure that the default file instabot.config.yml contains only common settings if you use multiple accounts.
Include the contents of your config here (instabot-py -c config.yml --dump) (REMOVE YOUR USERNAME AND PASSWORD!) (if applicable). < REPLACE THIS TEXT

Bot doesn't run?

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • [x ] I have searched for other issues with the same problem or similar feature requests.

Select one:

  • [ x] Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • [ x] Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Python Version Requirement

  • [ x] I am using Python 3.6 or above

Exact Python Version?

3.7.4

Pip Version?

19.2.3

Instabot Version?

0.6.0

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

I start the bot in CMD by typing "neo-instabot --login MYLOGIN --password MYPASS
and then the bot says: 

"Welcome to Neo-Instabot

THIS PROJECT HAS BEEN FORKED FROM neo-instabot Project.
DUE TO THE INACTIVITY OF ITS OWNER.

We hope that you enjoy the newer project.
Please follow & star the Neo-Instabot
Github : https://github.com/yurilaaziz/neo-instabot/
Telegram channel : https://t.me/joinchat/NTpLCxe7JqimNaZJYMRkYQ

Neo-Instabot is free and will remain free

for more debug info please add -v or -vv flag (neo-instabot -c config.yml -vv)"

Then doesn't do anything....

Config

accept_language: en-US,en;q=0.5
ban_sleep_time: 10800
comment_list:
- - this
  - the
  - your
- - photo
  - picture
  - pic
  - shot
  - snapshot
- - is
  - looks
  - feels
  - is really
- - great
  - super
  - good
  - very good
  - good
  - wow
  - WOW
  - cool
  - GREAT
  - magnificent
  - magical
  - very cool
  - stylish
  - beautiful
  - so beautiful
  - so stylish
  - so professional
  - lovely
  - so lovely
  - very lovely
  - glorious
  - so glorious
  - very glorious
  - adorable
  - excellent
  - amazing
- - .
  - ..
  - '...'
  - '!'
  - '!!'
  - '!!!'
comments_per_day: 70
comments_per_run: '{{comments_per_day}}'
config:
  file: config.yml
database:
  connection_string: sqlite:///{{database.path}}
  path: '{{login}}.db'
  type: sql
debug: 0
end_at_h: 23
end_at_m: 59
error_400_to_ban: 3
follow_per_day: 300
follow_per_run: '{{follow_per_day}}'
follow_time: 18000
follow_time_enabled: true
like_per_day: 400
like_per_run: '{{like_per_day}}'
list_of_ua:
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.6.01001)
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.7.01001)
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.5.01003)
- Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
- Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid)
  Firefox/3.6.8
- Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1
- Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
- Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid)
  Firefox/3.6.8
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)
- Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
- Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727;
  .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
- Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.01
- Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
- Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1
- Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.02
- Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112
  Safari/535.1
- Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.0) Opera 7.02 Bork-edition
  [en]
logging:
  disable_existing_loggers: false
  formatters:
    simple:
      format: '%(asctime)s - {{login}} - %(name)s - %(levelname)s - %(message)s'
  handlers:
    console:
      class: logging.StreamHandler
      formatter: simple
      level: DEBUG
      stream: ext://sys.stdout
  loggers:
    InstaBot:
      handlers:
      - console
      level: WARN
      propagate: 'no'
    Persistence:
      handlers:
      - console
      level: WARN
      propagate: 'no'
  root:
    level: INFO
  version: 1
max_like_for_one_tag: 5
media_max_like: 150
media_min_like: 0
proxies:
  http: '{{ proxy_http_string if (proxy_ip and proxy_port)}}'
  https: '{{ proxy_http_string if (proxy_ip and proxy_port)}}'
proxy_auth: '{{ proxy_auth_string if (proxy_user and proxy_password)}}'
proxy_auth_string: '{{ proxy_user}}:{{proxy_password}}@'
proxy_http_string: http://{{proxy_auth}}{{proxy_ip}}:{{proxy_port}}
proxy_https_string: https://{{proxy_auth}}{{proxy_ip}}:{{proxy_port}}
session_file: '{{login}}.session'
start_at_h: 0
start_at_m: 0
tag_blacklist: []
tag_list:
- design
- graphicdesign
- shoes
time_till_unlike: 259200
unfollow_break_max: 30
unfollow_break_min: 15
unfollow_everyone: false
unfollow_inactive: true
unfollow_not_following: true
unfollow_per_day: 200
unfollow_per_run: '{{unfollow_per_day}}'
unfollow_probably_fake: true
unfollow_recent_feed: true
unfollow_selebgram: false
unfollow_whitelist: []
unlike_per_day: 0
unlike_per_run: '{{unlike_per_day}}'
unwanted_username_list: []
user_blacklist: {}
user_max_follow: 0
user_min_follow: 0
window_check_every: 300

JSONDecodeError - Bot not working

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Running on local machine - MacOS env, also tried in Rasp pi and same error comes up

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/instabot/bot.py", line 484, in get_media_id_by_tag
    all_data = json.loads(r.text)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/local/bin/neo-instabot", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/instabot/__main__.py", line 345, in main
    bot.run()
  File "/usr/local/lib/python3.6/site-packages/instabot/bot.py", line 728, in run
    self.logger.debug(f"Retrieved {len(medias_raw)} medias")
TypeError: object of type 'NoneType' has no len()

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

3.6

Pip Version?

0.5.9

Instabot Version?

0.6.0

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/instabot/bot.py", line 484, in get_media_id_by_tag
    all_data = json.loads(r.text)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/local/bin/neo-instabot", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/instabot/__main__.py", line 345, in main
    bot.run()
  File "/usr/local/lib/python3.6/site-packages/instabot/bot.py", line 728, in run
    self.logger.debug(f"Retrieved {len(medias_raw)} medias")
TypeError: object of type 'NoneType' has no len()

Config

---
login : "login"
password : "password"
debug: 0
follow_time: 800
like_per_day: 100
like_per_run: 100
comments_per_day: 0
max_like_for_one_tag: 100
follow_per_day: 0
follow_time: 360
start_at_h: 9
start_at_m: 0
end_at_h: 22
end_at_m: 0
unfollow_per_day: 0
unfollow_break_min: 3
unfollow_break_max: 17
unfollow_selebgram: false
unfollow_probably_fake: false
unfollow_inactive: false
unfollow_recent_feed: false
tag_list:
tags

Connect to telegram bot

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • [x ] Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • [x ] If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • Windows
  • [ x] Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

Include here the response of 'python --version' or 'python3 --version'

Pip Version?

Include here the response of 'pip --version' or 'pip3 --version'

Instabot Version?

Include here the response of 'instabot-py --version'

How you use the instabot

  • [x ] instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

If i insert
logging.handlers.telegram:
level: INFO
formatter: telegram
class: telegram_handler.TelegramHandler
token: 12345:TOKEN_TOKEN
chat_id: 987643
with my token and chat_id, obviously
and the login of my instagram account, the bot does not detect them.
what is the correct procedure for this version?
once configured telegram how do I query the bot to show the data?
Thanks!

Include the contents of the error.log here (if applicable). < REPLACE THIS TEXT

Config

Ensure that you specify the configuration file in the command line.
Ensure that the default file instabot.config.yml contains only common settings if you use multiple accounts.
Include the contents of your config here (instabot-py -c config.yml --dump) (REMOVE YOUR USERNAME AND PASSWORD!) (if applicable). < REPLACE THIS TEXT

Login graphql issue

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

Include here the response of 'python --version' or 'python3 --version'
3.7.4

Pip Version?

Include here the response of 'pip --version' or 'pip3 --version'
19.2.3

Instabot Version?

Include here the response of 'instabot-py --version'

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

    self.user_id = self.get_user_id_by_username(self.user_login)
  File "c:\users\ke536ed\appdata\local\programs\python\python37-32\lib\site-packages\instabot\bot.py", line 214, in get_user_id_by_username
    id_user = json_info["entry_data"]["ProfilePage"][0]["graphql"]["user"]["id"]
KeyError: 'graphql'

Config

Ensure that you specify the configuration file in the command line.
Ensure that the default file instabot.config.yml contains only common settings if you use multiple accounts.
Include the contents of your config here (instabot-py -c config.yml --dump) (REMOVE YOUR USERNAME AND PASSWORD!) (if applicable). < REPLACE THIS TEXT

instagram automatically detects bot and blocks actions

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

3.6

Pip Version?

pip 19.2.2 

Instabot Version?

Installed version 0.5.9

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

Instagram automatically detects bot and blocks actions (see logs)

`InstaBot - INFO - Not liked: 400 message {"message": "feedback_required", "spam": true, "feedback_title": "Action Blocked", "feedback_message": "This action was blocked. Please try again later. We restrict certain content and actions to protect our community. Tell us if you think we made a mistake.", "feedback_url": "repute/report_problem/instagram_like_add/", "status": "fail"}
`

Config

---
login : "username"
password : "password"
debug: 0
follow_time: 604800
like_per_day: 100
tag_list:
- tags
comments_per_day: 0
max_like_for_one_tag: 20
follow_per_day: 0
follow_time: 36000
unfollow_per_day: 0
unfollow_break_min: 3
unfollow_break_max: 17
unfollow_selebgram: false
unfollow_probably_fake: true
unfollow_inactive: true
unfollow_recent_feed: false

log_mod=1 does nothing

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • If so, have you tried running the code on your local machine?

Operating System? (include version)

  • macOS
  • Windows
  • Linux (ArchLinux)
  • Android (include terminal)

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

Python 3.7.3

Pip Version?

pip 19.1.1 from /usr/lib/python3.7/site-packages/pip (python 3.7)

Description of your issue

With latest version with log_mod=1 the bot does not log to file.

Config

bot = InstaBot(
    login="",
    password="",
    like_per_day=1000,
        media_min_like=50,
        media_max_like=250,
    tag_list=[],
    tag_blacklist=[],
    user_blacklist={"": ""},
    max_like_for_one_tag=20,
    follow_per_day=0,
    unfollow_per_day=0,
    unlike_per_day=0,
    unfollow_recent_feed=False, # If True, the bot will also unfollow people who dont follow you using the recent feed. Default: True
    session_file="username.session", # Set to False to disable persistent session, or specify custom session_file (ie ='myusername.session')
    comments_per_day=0,
    log_mod=1,
    proxy=""
)

How to use own tags? Where to change setting?

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'
Darwin xxx-iMac-2.fritz.box 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64 x86_64

#### Python Version Requirement
- [X] I am using Python 3.6 or above

#### Exact Python Version?
3.7.3

Pip Version?

pip 19.2.3 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)

Instabot Version?

Installed version 0.6.0

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

I like to use my own tags etc. 
Have changed them in "default_config.py" already. But it still likes "cat" tagged pics... 
I find no other file on the directory where anywhere is "cat" inside!? 

I am running the bot with this command:
instabot-py --login LOGIN --password PASSWORD -vv

Config


> sample.instabot.config.yml

---
login : "XXX"
password : "XXX"
debug: 0
follow_time: 604800
like_per_day: 300
comments_per_day: 70
max_like_for_one_tag: 36
follow_per_day: 100
follow_time: 36000
unfollow_per_day: 0
unfollow_break_min: 3
unfollow_break_max: 17
unfollow_selebgram: false
unfollow_probably_fake: true
unfollow_inactive: true
unfollow_recent_feed: false

Automate bot?

Hi,
I have a question and after weeks I'm not able to find an answer.

I configured to like 450 likes per day my bot, and it's working perfectly from 9-23, as soon as reaches 450 ( after 2 days) stops, and never keep going,so I have to crtl+c cancel the bot and restart again.

there's an option or command for when reaches 450 likes ( or whatever) re-start again the boot and keeps liking, If I'm not doing anything, it holds permanently without doing anything, any clue?

thank you so much in advanced.
O.

ERROR - "name='csrftoken', domain=None, path=None"

Hi,

I have a brand new server, just compiled, installed services, pip, pyhton etc.. and neo-instabot is running
I'm running neo-instabot simultaneously using screen feat. On 2 profile everything is ok
On third I've got this error.
User / Password are OK
I tried to run only this bot (stopping others 2), same error....

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.
    (in the old instabot-py repo too)

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
Linux hostname 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Brand new Ubuntu 18.04 server ed.

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

Python 3.6.8

Pip Version?

pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

Instabot Version?

neo-instabot Instabot v0.6.0

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

as said ERROR - "name='csrftoken', domain=None, path=None"

Welcome to Neo-Instabot

THIS PROJECT HAS BEEN FORKED FROM neo-instabot Project.
DUE TO THE INACTIVITY OF ITS OWNER.

We hope that you enjoy the newer project.
Please follow & star the Neo-Instabot
Github : https://github.com/yurilaaziz/neo-instabot/
Telegram channel : https://t.me/joinchat/NTpLCxe7JqimNaZJYMRkYQ

Neo-Instabot is free and will remain free

for more debug info please add -v or -vv flag (neo-instabot -c config.yml -vv)
2019-08-26 10:57:12,385 - my_insta_profile - Persistence - DEBUG - Init SQL Perisitence sqlite:///my_insta_profile.db
2019-08-26 10:57:12,498 - my_insta_profile - InstaBot - INFO - Instabot v0.6.0 started at 26.08.2019 10:57:
2019-08-26 10:57:12,501 - my_insta_profile - InstaBot - INFO - Trying to login as my_insta_profile...
2019-08-26 10:57:18,023 - my_insta_profile - InstaBot - DEBUG - Login request succeeded
2019-08-26 10:57:18,024 - my_insta_profile - InstaBot - WARNING - Something wrong with login
2019-08-26 10:57:18,025 - my_insta_profile - InstaBot - DEBUG - {"authenticated": false, "user": true, "status": "ok"}
2019-08-26 10:57:18,026 - my_insta_profile - InstaBot - ERROR - "name='csrftoken', domain=None, path=None"
Traceback (most recent call last):
  File "/home/bot/.local/lib/python3.6/site-packages/instabot/bot.py", line 303, in login
    self.csrftoken = login.cookies["csrftoken"]
  File "/home/bot/.local/lib/python3.6/site-packages/requests/cookies.py", line 328, in __getitem__
    return self._find_no_duplicates(name)
  File "/home/bot/.local/lib/python3.6/site-packages/requests/cookies.py", line 399, in _find_no_duplicates
    raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name='csrftoken', domain=None, path=None"
2019-08-26 10:57:18,063 - my_insta_profile - InstaBot - ERROR - Login error! Check your login data!
2019-08-26 10:57:18,064 - my_insta_profile - InstaBot - INFO - Reading configuration (2 settings) from discopiano.yml
2019-08-26 10:57:18,065 - my_insta_profile - InstaBot - INFO - Exit from loop GoodBye


Config

default by dump, just changed username and password

Unique constraint failing

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

3.7.2

Pip Version?

18.1

Instabot Version?

0.6.0

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: medias.id
[SQL: INSERT INTO medias (id, created, status, code) VALUES (?, ?, ?, ?)]
[parameters: ('2123880500691312049', '2019-09-02 08:48:12.625028', 'Error', None)]

json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 82 (char 81) in 0.5.10

evertime i use bot for commenting after 3 or 4 comment this error disappear !

2019-08-24 19:58:52,915 - username - InstaBot - DEBUG - Retrieved 71 medias
2019-08-24 19:58:52,953 - username - InstaBot - DEBUG - Select 486 medias to process. Increase max_like_for_one_tag value for more processing medias
Traceback (most recent call last):
File "/usr/bin/instabot-py", line 10, in
sys.exit(main())
File "/usr/lib/python3.7/site-packages/instabot/main.py", line 344, in main
bot.run()
File "/usr/lib/python3.7/site-packages/instabot/bot.py", line 740, in run
self.new_auto_mod_comments(media)
File "/usr/lib/python3.7/site-packages/instabot/bot.py", line 1008, in new_auto_mod_comments
if self.iteration_ready("comments") and self.verify_media_before_comment(media):
File "/usr/lib/python3.7/site-packages/instabot/bot.py", line 1060, in verify_media_before_comment
all_data = json.loads(raw_data)["entry_data"]["PostPage"][0]
File "/usr/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.7/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 82 (char 81)

thanks for your help !

CONFIG:

login: username
password: password
debug: 0
ban_sleep_time: 10800
comment_list: ["hello"]
comments_per_day: 10
comments_per_run: '{{comments_per_day}}'
config:
  file: instabot.config.yml
database:
  connection_string: sqlite:///{{database.path}}
  path: '{{login}}.db'
  type: sql
debug: 0
end_at_h: 23
end_at_m: 59
error_400_to_ban: 3
follow_per_day: 0
follow_per_run: 0
follow_time: 36000
follow_time_enabled: true
like_per_day: 0
like_per_run: 0
list_of_ua:
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.6.01001)
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.7.01001)
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.5.01003)
- Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
- Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid)
  Firefox/3.6.8
- Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1
- Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
- Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid)
  Firefox/3.6.8
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)
- Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
- Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727;
  .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
- Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.01
- Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
- Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1
- Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.02
- Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112
  Safari/535.1
- Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.0) Opera 7.02 Bork-edition
  [en]
log_mod: 0
logging:
  disable_existing_loggers: false
  formatters:
    simple:
      format: '%(asctime)s - {{login}} - %(name)s - %(levelname)s - %(message)s'
  handlers:
    console:
      class: logging.StreamHandler
      formatter: simple
      level: DEBUG
      stream: ext://sys.stdout
  loggers:
    InstaBot:
      handlers:
      - console
      level: DEBUG
      propagate: 'no'
    Persistence:
      handlers:
      - console
      level: DEBUG
      propagate: 'no'
  root:
    level: INFO
  version: 1
max_like_for_one_tag: 150
media_max_like: 0
media_min_like: 1
session_file: '{{login}}.session'
start_at_h: 0
start_at_m: 0
tag_blacklist: []
tag_list: ["cat"]
time_till_unlike: 259200
unfollow_break_max: 17
unfollow_break_min: 3
unfollow_everyone: false
unfollow_inactive: true
unfollow_not_following: true
unfollow_per_day: 0
unfollow_per_run: 0
unfollow_probably_fake: true
unfollow_recent_feed: false
unfollow_selebgram: false
unfollow_whitelist: []
unlike_per_day: 0
unlike_per_run: 0
unwanted_username_list: []
user_blacklist: {}
user_max_follow: 0
user_min_follow: 0
window_check_every: 300

Traceback (most recent call last) - Random error occuring suddenly, while the bot is running fine.

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • Other

Environment

  • Are you hosting the bot on a VPS or other Cloud hosting?
  • Are you running the code on your phone
  • If so, have you tried running the code on your local machine?
Raspberry Pi - Raspbian

Operating System? (include version)

  • macOS
  • Windows
  • Rasbian Linux Raspberry PI (include flavour)
  • Linux (include flavour)
  • Android (include terminal)
Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

Python 3.7.3

Pip Version?

pip 18.1 from /home/pi/venv/lib/python3.7/site-packages/pip (python 3.7)

Instabot Version?

Installed version 0.5.9

How you use the instabot

  • instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • instabot-py --login LOGIN --password PASSWORD
  • instabot-py
  • example.py (Deprecated, please install newer version)

Description of your issue

I get this error randomly, while the bot is running:

Traceback (most recent call last):                           
 File "/ home/pi/venv/bin/instabot-py", line 10, in <module> sys.exit(main())  File "/home/pi/venv/lib/python3.7/site-packages/ instabot_py/__main__.py", line 304, in main    bot.mainloop()  File "/home/pi/venv/lib/python3.7/site-packages/ instabot_py/instabot.py", line 762, in mainloop    self.new_auto_mod_comments(media)  File "/home/pi/venv/lib/python3.7/sitepackages/instabot_py/instabot.py", line 1030, in new_auto_mod_comments    if self.iteration_ready("comments") and self.verify_media_before_comment(media):  File "/home/pi/venv/lib/python3.7/sitepackages/instabot_py/instabot.py", line 1082, in verify_media_before_comment    all_data = json.loads(raw_data)["entry_data"] ["PostPage"][0]  File "/usr/lib/python3.7/json/__init__.py", line 348, in loads    return _default_decoder.decode(s)  File "/usr/lib/python3.7/json/decoder.py", line 337, in decode    obj, end = self.raw_decode(s, idx=_w(s, 0).end())  File "/usr/lib/python3.7/json/decoder.py", line 353, in raw_decode    obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 2590 (char 2589)

  File "/home/pi/venv/lib/python3.7/site-packages/instabot_py/__main__.py", line 304, in main
    bot.mainloop()
  File "/home/pi/venv/lib/python3.7/site-packages/instabot_py/instabot.py", line 762, in mainloop
    self.new_auto_mod_comments(media)
  File "/home/pi/venv/lib/python3.7/site-packages/instabot_py/instabot.py", line 1030, in new_auto_mod_comments
    if self.iteration_ready("comments") and self.verify_media_before_comment(media):
  File "/home/pi/venv/lib/python3.7/site-packages/instabot_py/instabot.py", line 1082, in verify_media_before_comment
    all_data = json.loads(raw_data)["entry_data"]["PostPage"][0]
  File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.7/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 2563 (char 2562)

It's the same format always, just the line numbers differ. It just appears randomy, while the bot is running REALLY well. Then, Instabot stops working. After the error, I can restart Instabot, run it for 3-4 hours, then when I return at the SSH terminal, it shows me this error. Sometimes, this error appears immediately after running. It's the same always, only the line numbers differ. I have installed the latest Instabot with this tutorial:

#Install python3-venv to create virtual env
# In Ubuntu, install it using apt
sudo apt install python3-venv 
# Create a virtual env 
python3 -m venv venv 
source venv/bin/activate
pip install instabot-py
instabot-py --version

The source is https://medium.com/@asker_amine/whats-new-in-the-instagram-bot-0-5-2-fe52154fdc8a

#### Config
login : "myusername"
password : "mypassword"
accept_language: en-US,en;q=0.5
ban_sleep_time: 10800
comment_list:
- (my comments)
comments_per_day: 24
comments_per_run: '{{comments_per_day}}'
database:
  connection_string: sqlite:///{{database.path}}
  path: '{{login}}.db'
  type: sql
debug: 0
dump_configuration: false
end_at_h: 21
end_at_m: 45
error_400_to_ban: 3
follow_per_day: 30
follow_per_run: 30
follow_time: 18000
follow_time_enabled: true
like_per_day: 30
like_per_run: 30
list_of_ua:
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.6.01001)
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.7.01001)
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.5.01003)
- Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
- Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid)
  Firefox/3.6.8
- Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1
- Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
- Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid)
  Firefox/3.6.8
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)
- Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
- Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727;
  .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
- Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.01
- Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
- Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1
- Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.02
- Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112
  Safari/535.1
- Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.0) Opera 7.02 Bork-edition
  [en]
log_mod: 0
logging:
  disable_existing_loggers: false
  formatters:
    simple:
      format: '%(asctime)s - {{login}} - %(name)s - %(levelname)s - %(message)s'
  handlers:
    console:
      class: logging.StreamHandler
      formatter: simple
      level: DEBUG
      stream: ext://sys.stdout
  loggers:
    InstaBot:
      handlers:
      - console
      level: DEBUG
      propagate: 'no'
    Persistence:
      handlers:
      - console
      level: DEBUG
      propagate: 'no'
  root:
    level: INFO
  version: 1
max_like_for_one_tag: 11
media_max_like: 150
media_min_like: 0
session_file: '{{login}}.session'
start_at_h: 9
start_at_m: 30
tag_list:
- (my list)
time_till_unlike: 0
unfollow_break_max: 75
unfollow_break_min: 50
unfollow_everyone: false
unfollow_inactive: true
unfollow_not_following: true
unfollow_per_day: 30
unfollow_per_run: 30
unfollow_probably_fake: true
unfollow_recent_feed: false
unfollow_selebgram: false
unlike_per_day: 0
unlike_per_run: 0
user_max_follow: 0
user_min_follow: 0
window_check_every: 300

Proxy option

Hi
As I know, Instagram is monitoring the IP you connect with. And when you are blocked with this error, then you are only block for special IP address.

Reason: {"message": "feedback_required", "spam": true, "feedback_title": "Action Blocked", "feedback_message": "This action was blocked. Please try again later. We restrict certain content and actions to protect our community. Tell us if you think we made a mistake.", "feedback_url": "repute/report_problem/instagram_like_add/", "status": "fail"}

If you can't switch the IP address, because you are running the bot on a hosted server, the only possibility is to use a proxy. But this option is deprecated.

So please add this option back in the code.

login issue

aaron@SubZerO:~/Downloads/neo/neo-instabot-master$ instabot-py -c el.yml

Welcome to Neo-Instabot

THIS PROJECT HAS BEEN FORKED FROM neo-instabot Project.
DUE TO THE INACTIVITY OF ITS OWNER.

We hope that you enjoy the newer project.
Please follow & star the Neo-Instabot
Github : https://github.com/yurilaaziz/neo-instabot/
Telegram channel : https://t.me/joinchat/NTpLCxe7JqimNaZJYMRkYQ

Neo-Instabot is free and will remain free

for more debug info please add -v or -vv flag (neo-instabot -c config.yml -vv)
2019-08-30 20:00:31,004 - el_sync - Persistence - DEBUG - Init SQL Perisitence sqlite:///el_sync.db
2019-08-30 20:00:31,074 - el_sync - InstaBot - DEBUG - using proxy configuration {'45.224.151.18:999': None}
2019-08-30 20:00:31,074 - el_sync - InstaBot - INFO - Instabot v0.6.0 started at 30.08.2019 20:00:
2019-08-30 20:00:31,075 - el_sync - InstaBot - INFO - Trying to login as el_sync...
2019-08-30 20:00:32,659 - el_sync - InstaBot - DEBUG - Login request succeeded
2019-08-30 20:00:32,660 - el_sync - InstaBot - ERROR - Login error! Check your login data!
2019-08-30 20:00:32,660 - el_sync - InstaBot - INFO - Reading configuration (2 settings) from el.yml
2019-08-30 20:00:32,660 - el_sync - InstaBot - INFO - Exit from loop GoodBye

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.