Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #196

Merged
merged 200 commits into from
May 4, 2021
Merged

Develop #196

merged 200 commits into from
May 4, 2021

Conversation

mastrolube
Copy link
Contributor

@mastrolube mastrolube commented May 4, 2021

Welcome in GramAddict v2.0!
It takes me a lot of time since I was alone lately. This is the version 2.0 of the bot which contains a lot of fixes, improvements and new features!
I learn a lot in these time so maybe not all evil comes to harm :slight_smile:

I want to special thanks all the people who helps me testing and giving me good ideas! Thanks you all!

Instructions for update:

- using git:
git checkout master
git pull
- using pip/pip3:
pip/pip3 install GramAddict -U

The uiautomator2, which this bot is based, has been updated to a newer version, so it will takes a while to update everything! Be patient!

The following is a list of bugs, improvements and new features. You need to read the docs to understand how to use them correctly!

Bugs fixed (most relevant):
🐛 fixed a problem for private account switching. If your username is private, you should have an username folder with 2 blank space at the beginning (it's a bug from 1.2.x), when running the v2 it will be fixed automatically!
🐛 filter.json is now related to account, so you can have one for each account with different options! put it inside your accounts/your_nickname/ folder
🐛 config.ylm files can now use characters other than Latin
🐛 swipe points had a typo error that could change his behaviour
🐛 when loading limits, there was a bug that change them every time we call the function!
🐛 we were looking for blocks using an old class
🐛 when watching stories we will press on a reduced area in order to avoid pressing on tags
🐛 the check if someone was following you was too fast, so you could unfollow people who actually follow you. fixed
🐛 While checking if screen was on or off, I find out that the check return an error. That was causes by not Latin characters of an user. I fixed that and now we are all citizen of the world.
🐛 In the meantime some ResourceID changed, I update them to the newer version of IG.
🐛 Buttons can have texview ClassName instead of button ClassName.
🐛 Switching account maybe was much fast, I slowed it down a little bit
🐛 The checking if English was totally wrong, I fixed it. I also get rid of "maybe not English set?!?!?"
🐛 the speed multiplier will no longer affect watching stories
🐛 fixed some problem while watching stories
🐛 fixed a bug if the following button was not present in view
🐛 fixed a problem in unfollow people which cause a premature end of the job
🐛 fixed a problem if the search bar is not present
🐛 for someone the tabs (accounts, tags, place, ..) when searching something appear only after they type something. fixed

Improvements (most relevant):
🐈 UIA1 has been removed, privacy problem has been solved with the new version of UIA2
🐈 accounts have been moved to a parent folder -> accounts. That will help you to manage them.
🐈 the bot is now very fast where it needs to be (I've no problem till x5)
🐈 now you can have infinite list of users/hashtags to interact with and choose randomly among them
🐈 you can shuffle jobs in order to avoid do the same operations in the order you wrote them
🐈 analystics will always be performed at the end of the session in the current accounts/username_name/reports
🐈 speed up checking profile from 12-15s to like 5s (it also depends of your speed multiplier)
🐈 kill agent has been moved in order to not generate a crash anymore if you're using --screen-sleep feature
🐈 you can disable filters without the needs of removing/rename the file
🐈 when in scrape mode, we don't need a full report. Also when we are in normal mode we don't need to know about scrape
🐈 time reports are now consistent
🐈 the session will not end if we reach comments/watches or PM limits, we only stop to do them
🐈 every argument can be a range instead of a single number (for example 10-15)
🐈 get some useful info of your device at start (resolution, screen size, android version, phone name)
🐈 you can kill other application while running the bot
🐈 introduced the crash limit: if the bot crashed more than N number of times, we will stop it
🐈 you can specify for more then one alphabet in filter.json
🐈 bot will check version even for betas, and i a clever way
🐈 a lot of logging improvements
🐈 mitigate false click when opening items in list

New features:
🎁 sort your followers from the newest to oldest and vice versa
🎁 specify in filter.json in which job you want to comment
🎁 interact blogger post likers
🎁 interact with places (hashtag and posts)
🎁 interact blogger
🎁 interact own feed
🎁 unfollow from list (*.txt). there is also a new paramenter --total-unfollows-limit which rules every unfollow actions
🎁 scrape usernames to a .txt instead of interact
🎁 working hour scheduler with time delta
🎁 you can comment posts: video, photo and carousel can have different comments
🎁 you can send PM to pubblic and private users
🎁 you can use emoji in comments, PM, and hashtags
🎁 you will type char by char to act more as human: no need to reinvent the wheel..
🎁 browse carousel
🎁 watch videos for a specified time before interact

mastrolube and others added 30 commits December 1, 2020 11:55
* add NOT_IN_LIST check for can_follow

* Update version.py

Co-authored-by: Philip Ulrich <philip@ulrich.life>
if you ctrl-c out, give an option to pause or quit.
🎁 add filter - following
🎁 add filter - follower
🐈 refactor resource ids
Co-authored-by: Uğur Kellecioğlu <51965140+ugur-kellecioglu@users.noreply.github.com>
🐛 add new resource ID for some devices.
🐛 add short sleep before checking if the screen is unlocked to reduce issues
🐛 modify story watching to reduce crashes
🐛 substitute the .down with .find that caused a crash
🐎 increase speed of things that don't need to be slow
🐈 slow down some views (e.g. recent hashtags) to reduce issues
📝 fix some issues with argument help not matching
🐛 Fix analytics report when there is broken data
🐈 Include time in analytics report so you can generate multiple a day
🐈 Make pause better
🐈 add files for pypi distro
🐛 fix errors related to resourceid refactor
🐛 fix unfollow after unfollowing a follower
🐎 sped up sleep after unfollow
🐛 fix error on hashtag in biography
🎁 add scroll repeat exiter
🎁 add speed multiplier
forget to remove old codes
- slow down a little bit the scroll speed from 0.3 to 0.4 min
- after liking post of an user, going back with the exact scroll (no longer unwanted refresh of the page)
- reunify some functions
- force_interact.dis updated
- likes_from_urls.py updated
Hashtag-post plug-in
- control if like in feed has successed otherwise single click
- if the view goes over the nickname of the owner for inertia, is not a problem anymore
- add the detect block in feed
-add the hashtag-posts-top feature
black by hands
imported but not used, removed
removed comment part and add one detect_block
🐛 forgot to end the loop when finish

TODO: "in each job we assume being on the top of the Profile tab already" is missing
fix bug when failing open post
fix follow limit for interact blogger
clean
fix a position of a random sleep for preventing skipping likers of a post
- reorganize the code
- add beta check
- fix a missed click before type
- refresh account at start
- if searchbar not loaded, retry
- custom click
- matplotlib back to 3.3.3 from 3.4.1
- error return a tuple
- from position of an argument
- new argument total-unfollows-limit
- unfolow from list
- unfollow any asnd followed by script improved
- crash name related to version
- minor bug fixes
NaN from numpy is the same as nan from math.. I guess
-fix confirm dialog detected as block :S
- old type if the new fails
- some goodnees for feed interactions
* tab bar is not present.. little hack

* tab test

- tab second try
- variable not declared

* tab not present fix

tab not present fix
- fix open likers if it shows "number likes" instead of "nickname and others"
- show limit reached  log in unfollow
- sometimes after the refresh of the account the view goes a little bit down, little swipe up in that case should prevent this problem
- new follow status: None. Prevent error if follow button is not present
- mitigate false clicks while interacting with list
- version check improvement
- move username folders to a main folder accounts
- clean .gitignore
- some usefull logging
- save sessions among sleeps
- fix a problem with unfollows (raw)
- better checking version (bot and IG)
- some usefull links
- back from find_namespace_packages to find_packages
- usefull total counting
- double search for adb devices
- rewrote the safe click code for open likers
- send pm to private accounts: "pm_to_private_or_empty": true/false in filter.json
- remove a not necessary action with the keyboard
- interact with feed is not longer affected by "already interacted". when database will be ready we could improve that
- fix a problem in feed that could cause loops
- added a refresh before starting interact with feed
@mastrolube
Copy link
Contributor Author

🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants