Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/merobi-hub/bibliomania

Bibliomania uses Python to slice and post html editions of public domain literature sequentially to social media.
https://github.com/merobi-hub/bibliomania

beautifulsoup4 cronjob google-cloud python text-mining tweepy twitter twitter-bot

Last synced: about 1 month ago
JSON representation

Bibliomania uses Python to slice and post html editions of public domain literature sequentially to social media.

Awesome Lists containing this project

README

        

# bibliomania

This Python code opens and slices an ebook and then posts it sequentially to Twitter with a hashtag. The app uses Tweepy for twitter authorization and Beautiful Soup for text parsing. A cron job handles the scheduling of tweets, and a blob in a Google Cloud storage bucket keeps track of the character count for determining where to start the next slice of text. Twitter credentials go in a separate file, hidden.py (not included here).

The code can open, slice, and post text from any text or html file, but the envisioned purpose is to renew attention to forgotten literary works in the public domain by posting bite-sized excerpts to a social media platform. The example used here is Project Gutenberg's text edition of Thomas F. Dibdin's 1809 *Bibliomania; or Book Madness*.

License: Creative Commons BY-SA 4.0