Source

downloadduxiu /

Filename Size Date modified Message
doc
test
109 B
171 B
1.7 KB
0 B
331 B
15.9 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.

# on linux
./downloadduxiu.py --tofile=tofile --prex=prex --procnum=n 'yourlink'
# on windows
downloadduxiu.py --tofile=tofile --prex=prex --procnum=n 'yourlink'

prefaces.py:

# this script must be run first to prepare the prefaces before any images copyed to current direction.

# on linux
./prefaces.py *.jpg *.png
# on windows
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.

# on linux
./gendocument.py --tofile=somename.pdf *.png *.jpg
# on windows
gendocument.py --tofile=somename.pdf *.png *.jpg

gui.py:

# on linux
./gui.py
# on windows
gui.py

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 --procnum=1 "%s"'%s)

if __name__ == '__main__':
    # replace your link with your actual link sat in your email.
    s = "your link"
    main(s)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.