chazzam / wordpress-epub Goto Github PK
View Code? Open in Web Editor NEWDownload articles from wordpress, convert to epub
License: GNU Lesser General Public License v3.0
Download articles from wordpress, convert to epub
License: GNU Lesser General Public License v3.0
There is currently support for pulling the "title" of an article from the body, and then running a couple of string operations on it to fix it up for displaying in the table of contents. Need to add support for similar operations being done on the "title" in the body of the article as well. Probably separate though.
If a site has a post split across multiple posts, support combining them into one chapter in the epub, so this would only affect make-epub.py
I guess it would ignore the title of all subsequent parts after the first, and just shove the content together with a cat type operation
Adding these would probably let this be run automatically by parsing an RSS feed, then just need to make the epubs available somehow.
Add an argparse subparser to download-chapters to enable downloading a chapter from a URL, a file-name to save, and a Title maybe.
download --url <url> --file <file> --title <chapter title>
This would not update the config file in anyway, but would simply make the specified file exist
Maybe another subparser in make-epub to manually create an epub without an updated config file
epub --base-config <config> --section <file glob> --section <file glob> --section <file glob> --section-list <list of files>
The base-config could supply the info like book title, author, synopsis, etc
Could also potentially add support for updating the config file, instead of manually creating an epub?
update --config <config> --volume <volume number> --full-parts|--append-parts <parts string> --volume-title <title>
calculating the parts string might not be easy... Might take current parts string and just ",new part"
instead of trying readability, mayhap follow feediron's example and have 'cleanup' xpath selections of content to be removed from the web scraped content.
Can specify a list of tags in the config to remove this way
Add support for downloading and including a cover for each epub file, and each section within it.
add support for using the wordpress json api to download chapters when explicitly requested in a config file
download and include images that are embedded in the body of an article
See if there is some kind of library that performs something similar to "readability" which finds the body of an article and formats it for easier reading that I can shove articles through instead of doing it all myself
Create a multi-volume epub from just one config file.
This would mean adding support to ebooklib for specifying a "series" using the type of title stuff. So adding a title would need to get much more complicated. Would also mean some kind of change to the config file. Right now an epub is created from the [toc] section. Would need to be able to have multiple TOC sections and a higher section to group them I guess.
Support being given a link to a page, and processing all the links in the article body as though it was a config file. Will need to split into volumes and maintain link order
Reference: http://www.translationnations.com/translations/swallowed-star/
pull out wordpress style footnotes, and convert them to proper epub style footnotes. probably a low priority because the html style ones seem to work for me in FBReader
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.