realtux / instamanage Goto Github PK
View Code? Open in Web Editor NEWInstagram unfollow who doesn't follow you back
Instagram unfollow who doesn't follow you back
linux@linux ~/Scripts/python/instamanage $ python instamanage.py
File "instamanage.py", line 12
print 'please create a config.json file (config_sammple.json in root)'
drwxrwxr-x 3 linux linux 4096 Oct 2 16:01 .
drwxrwxr-x 5 linux linux 4096 Oct 2 16:01 ..
-rw-rw-r-- 1 linux linux 66 Oct 2 16:01 config.json
-rw-rw-r-- 1 linux linux 66 Oct 2 16:01 config_sample.json
drwxrwxr-x 8 linux linux 4096 Oct 2 16:01 .git
-rw-rw-r-- 1 linux linux 28 Oct 2 16:01 .gitignore
-rw-rw-r-- 1 linux linux 11692 Oct 2 16:01 instamanage.py
-rw-rw-r-- 1 linux linux 717 Oct 2 16:01 readme.md
There should be a simple configuration option which allows to whitelist specific users to be excluded from any automatic unfollowing actions, even if they don't follow back.
Thanks for the great code - works very well. I was wondering if there was any way to write the usernames of who has been unfollowed to a text file. I would like to be able to check the list manually to avoid re-following someone who has just been unfollowed by the script.
Currently the script doesn't produce any useful human-readable output, neither in the STDOUT output:
building follower list...
found 156 followers
done finding followers
building following list...
found 330 following
done finding following
found 175 people who you follow but don't follow you back
writing data to state.json
โฆ nor in the generated state.json file (only cryptic numerical user IDs inside).
At some stage it should print the list of users with their proper user name. Maybe like this:
building follower list...
found 10 followers
done finding followers
building following list...
found 12 following
done finding following
found 2 people who you follow but don't follow you back:
UserA
UserB
writing data to state.json
It seems that Instagram changed their endpoint. followers
(link) gets 404 back.
console output:
attempting login...
logged in successfully
building follower list...
Traceback (most recent call last):
File "instamanage.py", line 419, in <module>
menu()
File "instamanage.py", line 94, in menu
start_sync()
File "instamanage.py", line 135, in start_sync
data = json.loads(followers.text)
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
logging out...
How can the script be run using windows?
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.