Source

downloadduxiu /

Filename Size Date modified Message
doc
test
75 B
57 B
1.3 KB
0 B
331 B
15.8 KB
1.9 KB
2.0 KB
778 B
5.6 KB
222 B

downloadduxiu readme

About this package

This downloadduxiu package is used to download books either from duxiu or from chaoxing if the book is accessable in your browsers.

Files

downloadduxiu.py:

# prex direction must be created in order to execute this command.
./downloadduxiu.py --tofile=tofile --prex=prex 'yourlink'

prefaces.py:

# this script must be run first to prepare the prefaces before any images copyed to current direction.
./prefaces.py *.jpg *.png

gendocument.py:

# copy preface images prepared in last step to where content page images sit and use command below to generate the whole document.
./gendocument.py --tofile=somename.pdf *.png *.jpg

Usage on Windows

Create a dir named xiazai. Replace with your link between the double quatation marks on the last line but one in the windowshelper.py file. Save it and double click to execute the file.

import os

def main(s):
    os.system('downloadduxiu.py --prex=xiazai --logfile=logfile "%s"'%s)

if __name__ == '__main__':
    # replace your link with your actual link sat in your email.
    s = "your link"
    main(s)