Skip to content

A cute little utility to find tweetable sentences inside a EPUB book

License

Notifications You must be signed in to change notification settings

gabalese/tweet-a-book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tweet-A-Book!

A little (Flask) webapp to find tweetable sentences inside of an EPUB format publication.

Description

The task: I often have the need to find short quotes in a book, usually to help us promote a publication on social media. This tool does exactly this: takes an ePub book and spits out a list of potentially tweetable sentences from the book. Try it, a test instance is available at tweet-a-book.alese.it.

How does this work?

The tokenize function does basically look for anything longer than 100 and shorter than 140 characters in each XHTML inside the epub. As you may guess, the algorithm can be improved in many ways. Want to help me? Look into src/functions.py.

Requirements

The app depends on flask and pyepub, which is included in a tuned version to comply with Heroku requirements (id est: no lxml dependencies).

Copyright

Tweet-A-Book is released as an open source project under the MIT license (as in LICENSE textile).

About

A cute little utility to find tweetable sentences inside a EPUB book

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages