Hello,
I'd like to share my recipe of english edition of polish cultural magazine biweekly.pl
Let me comment the code and then ask some questions :-)
Basically this recipe opens a web page, finds the epub link, downloads it and converts it to OEB directory structure and outputs that as recipe feed. I think this is a better way of managing this kind of downloadable ebook news than just using zipfile epub unzip as Lars Jacob and Starson17. Using conversion to OEB it is possible to use as input anything that conversion can recognize (mobi, html, txt etc). The problem with this code is that it will not work if ebook-convert is not in path. So my question is if someone could help me with using conversion not as a system call but using native python code. I've already have few more recipes of such "download ebook from here" sources but would like to establish a proper way of handling this kind of news. Thanks in advance!
I'd like to share my recipe of english edition of polish cultural magazine biweekly.pl
Spoiler:
Let me comment the code and then ask some questions :-)
Basically this recipe opens a web page, finds the epub link, downloads it and converts it to OEB directory structure and outputs that as recipe feed. I think this is a better way of managing this kind of downloadable ebook news than just using zipfile epub unzip as Lars Jacob and Starson17. Using conversion to OEB it is possible to use as input anything that conversion can recognize (mobi, html, txt etc). The problem with this code is that it will not work if ebook-convert is not in path. So my question is if someone could help me with using conversion not as a system call but using native python code. I've already have few more recipes of such "download ebook from here" sources but would like to establish a proper way of handling this kind of news. Thanks in advance!