I've been wanting a feed of instagram bands posts to know when they play whitout having to look over each one of the bands I like, like having an exclusive notification for these kind of posts. So I thoutgh that making a bot that would do just that would be a nice exerisce
I generalized the idea of live performances of bands to any kind of instagram account, and the idea of finding out whether or not the publication is a promotion for a perfomance as the search for certain custom keywords in the publication's caption. Then, this bot lets you choose what new posts of instagram accounts you are going to be feeded, given that those posts have your custom keywords.
Alternatively, you can also receive all new posts from the accounts you want. And there is also a function to get any amount of lasts posts you would want from a given account.
The language used is python. The bot uses telegram-python-bot
, but the tool itself to get new publications is independent from the bot, and uses the requests
and json
modules to get the posts. Using sqlite
as the database engine to store all the pertinent information via Pony ORM
.
I'm going to be updating the bot now and again, fixing bugs, as I encounter them, depending on their severity, and making upgrades. I already have updates and todos planned for the future, some of them are:
- New functionalities:
- Add functions to stop and resume the job that checks whether or not there are new posts
- Process error messages, given by the feeder, to send through the bot in a more friendly user manner
- Add OCR to search for the given keywords on the posts pictures also
Feel free to ask me any questions or make any suggestions.