Python tumblr -> epub scraper for docfuture.tumblr.com.
The author of Doc Future has commented that they may publish the books commerically in the future, so please do not share the epubs created by this scraper publicly.
- List of all Doc Future novels and other stories by W. Dow Rieder
- https://riderius.dreamwidth.org/ - The author's new blog, has some revised chapters of Princess (not supported by this scraper yet)
- pytumblr
- EbookLib
- tumblr API reference
- Lithium ebook reader (recommended ebook app for Android)
- Make sure you have a valid python installation (tested on python 3.12)
- Create a virtual environment
python3.12 -m venv venv
source venv/bin/activate
- Install requirements
pip install -r requirements.txt
- Login/register to tumblr
- Create new application here: https://www.tumblr.com/oauth/register
- Most options should be self-explanatory
- For callback URL you can use any URL, I used postbin
- At https://www.tumblr.com/oauth/apps you can get your
OAuth Consumer Key
andSecret Key
- Create a file at
~/.tumblr
that looks like this:
consumer_key: YOUR_CONSUMER_KEY_HERE
consumer_secret: YOUR_CONSUMER_SECRET_HERE
oauth_token: # not necessary
oauth_token_secret: # not necessary
(Note: if you want an oauth token/secret you can use the interactive console script from pytumblr, but I don't think this is actually necessary for only reading posts)
python3 scrape.py
This will scrape each post and compile the contents into an epub under output/docfuture.epub
.