Closed Eran111 closed 5 years ago
here's an solution i made:
bot_filter.py - the main issue:
bot.py edit:
bot_like.py:
let me know what you think :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
i will try
Eran111 i tryed your solution but not work
I find a new solution: i change filter_users=True, in filter_users=False, and now it like to people that already follow
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
well, @thedarkknight197 your solution does work, but sometimes you do want the filtration to work in other cases and in this case not. so either changing it each time i made my own "like users" function heres whats important for it to work..: i suggest instabot will do something similar..
afterwards the function continue with like process
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like so [x]).Before submitting an issue, make sure you have:
Purpose of your issue?
The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.
For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.
Paste the output of
python -V
here:Code:
Describe your issue
You cannot like your own following users due to Check_User function Filtration. when you like user (using filtration) - apparently you end up liking his media by "Check_Media" function. this function includes "check_user", and return false if it fails - means, you cannot filter media without filter also users.
what if you want to like your own followers? youll have to turn off filtration by users. although check_user if effects other scripts running.
by calling this function we may add the attribute filtration=True, unless programmer define something else and all chain calling the function should support this attribute. thank you!