pyslackers / sirbot-plugins

Various plugins for Sir-bot-a-lot
MIT License
2 stars 1 forks source link

Plugin Idea: Packt Free Ebook listings notifications #10

Open daredevil82 opened 7 years ago

daredevil82 commented 7 years ago

The publisher Packt has a free ebooks page that updates every 24 hours or so, and a good portion of them are related to channel topics and Python in general. We could define a list of criteria for a book to match, and plugin to check the current day's offering. If the book matches the criteria, it would then post a link in the #general channel.

An additional enhancement would be to check the Amazon API for the user review count and stars for the book and include that in the channel posting.

ovv commented 7 years ago

Thanks for the idea.

Do you know if they provide an rss feed ? A general plugin to follow RSS feeds would be more globally usable.

PS: I update your comment because the link was bugged

daredevil82 commented 7 years ago

I agree a RSS feed would be easier, but I don't believe Packt offers such a stream, unfortunately. I am signed up for email notifications from them, but it is around a twice-monthly sort of thing.

They do have their own subreddit, but postings are somewhat inconsistent.

ovv commented 7 years ago

Email and reddit are both services I hope to integrate at one point :)

I'm not big onto scrapping but you are more than welcome if you want to give it a shot. We might need #9 first.

daredevil82 commented 7 years ago

Yes, since this would be a scheduled task. I'd need to learn the slackbot API first, though.

Right now, this is just the idea. I'd be able to to the scraping code, but the slack integration is a big ❓❓❓ for me.

ovv commented 7 years ago

Well I'm trying to simplify as much as possible the slack integration.

You can look here and here for some example of how the messages are built with sirbot.