You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.
Searched the bugtracker for similar issues including closed ones
Purpose of your issue?
Bug report (encountered problems/errors)
Feature request (request for a new functionality)
Question
Other
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: Python 2.7.17
Code:
# Example code that will produce the error reportedfrominstabotimportBotbot=Bot()
bot.login(username="user", password="pass")
medias=bot.get_hashtag_medias("drifted")
I followed the installation guide, and used pip to install the bot. Then used git to download the examples, as shown in the installation guide for Linux.
I am using everything default, nothing changed.
After going through the code, I tried to comment the filter_medias function in bot_filter.py, like this:
deffilter_medias(self, media_items, filtration=True, quiet=False, is_comment=False):
# if filtration:# if not quiet:# self.logger.info("Received {} medias.".format(len(media_items)))# if not is_comment:# media_items = _filter_medias_not_liked(media_items)# if self.max_likes_to_like:# media_items = _filter_medias_nlikes(# media_items, self.max_likes_to_like, self.min_likes_to_like# )# else:# media_items = _filter_medias_not_commented(self, media_items)# if not quiet:# msg = "After filtration {} medias left."# self.logger.info(msg.format(len(media_items)))return_get_media_ids(media_items)
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.
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: Python 2.7.17Code:
Error/Debug Log:
I followed the installation guide, and used pip to install the bot. Then used git to download the examples, as shown in the installation guide for Linux.
I am using everything default, nothing changed.
After going through the code, I tried to comment the filter_medias function in bot_filter.py, like this:
Weirdly enough, this doesn't solve it, and I get:
Using
does seem to work, but you obviously don't have any control at that point anymore.
Initially I tried using the example script to download by hashtag (same error), but tried manually to simplify the problem as much as possible.
The text was updated successfully, but these errors were encountered: