GramAddict / bot

Completely free and open-source human-like Instagram bot. Powered by UIAutomator2 and compatible with basically any Android device 5.0+ that can run Instagram - real or emulated.
https://docs.gramaddict.org
MIT License
1.13k stars 179 forks source link

interact (like and comment) with only the post in postview without entering the profile #281

Open metapodcod opened 2 years ago

metapodcod commented 2 years ago

can you make a feature like here https://github.com/InstaPy/instapy-quickstart/blob/master/quickstart_templates/good_commenting_strategy_and_new_qs_system.py

"instapy" works like this: navigate to given tags, receive posts, like posts, comment on that post and move to next content,

for example https://www.instagram.com/explore/tags/turkey/ counts all content here, performs the operations I mentioned above respectively or in a mixed way

In short, we are interested in the posts on the label, not with who liked them.

I'm sorry for my bad english

chinciusan commented 2 years ago

you can already do that, you just need to configure the bot do work like that. `

hashtag-posts-recent List of hashtags in recent results with whose posts you want to interact. [hashtag1, hashtag2]

` check the documentation https://docs.gramaddict.org/#/configuration

metapodcod commented 2 years ago

I follow the user in the transactions here, but I don't want him to follow me, I just want to like and comment on the post in the hashtag. In addition, if there is a post that I am processing, I want it to not take action on another post belonging to that user, I do not know how to do this exactly, I would be happy if you could share a sample configuration file.

mastrolube commented 2 years ago

OK, so you want to interact only with the post and not with the user at all, correct? That's not available yet, but can be accomplished easily.

You have just to avoid executing the interaction with the profile user and leave only the interaction in place. (you have to modify the code to accomplish that). Also commenting in place is not coded as well (only inside the profile is supported). Without entering inside the profile no data will be stored in your interacted and filtered user json. About the interacted json file you can just call the storage function and store what you have done (like and comment?). For the filtered user is a little tricky. You can save this info partially (by losing all the information you can get from the profile view). A good alternative will be to grab all the info of a profile by doing a public api call (but that's not present in this bot, and need to be coded as well!)

Maybe not as easy as I said but definitely possible.

https://github.com/GramAddict/bot/issues/223#issue-1034520537

becauseimnoob commented 1 year ago

OK, so you want to interact only with the post and not with the user at all, correct? That's not available yet, but can be accomplished easily.

You have just to avoid executing the interaction with the profile user and leave only the interaction in place. (you have to modify the code to accomplish that). Also commenting in place is not coded as well (only inside the profile is supported). Without entering inside the profile no data will be stored in your interacted and filtered user json. About the interacted json file you can just call the storage function and store what you have done (like and comment?). For the filtered user is a little tricky. You can save this info partially (by losing all the information you can get from the profile view). A good alternative will be to grab all the info of a profile by doing a public api call (but that's not present in this bot, and need to be coded as well!)

Maybe not as easy as I said but definitely possible.

#223 (comment)

@mastrolube It only lists the posts, it doesn't do likes, comments etc. Are you sure this code works?