-
Notifications
You must be signed in to change notification settings - Fork 21
/
run.bat
44 lines (42 loc) · 1.33 KB
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
@title CSDNExporter
@CHCP 65001
@cls
@color 9F
@echo ================================================================================
@echo ^|^|=================== CSDNExporter(Windows版本) ==========================^|^|
@echo ^|^|============= Github链接:https://github.com/axzml/CSDNExporter ==============^|^|
@echo ================================================================================
set download_category="true"
set category_url="https://blog.csdn.net/weixin_43792401/category_12292383.html"
set article_url="https://blog.csdn.net/weixin_43792401/article/details/130065744"
set start_page=1
set page_num=100
set markdown_dir=markdown
set pdf_dir=pdf\
if %download_category% == "true" (
echo "download a category"
python -u main.py ^
--category_url %category_url% ^
--start_page %start_page% ^
--page_num %page_num% ^
--markdown_dir %markdown_dir% ^
--pdf_dir %pdf_dir% ^
--combine_together ^
--to_pdf ^
--is_win 1
@REM --with_title ^
@REM --rm_cache
) else (
echo "download an article"
python -u main.py ^
--article_url %article_url% ^
--markdown_dir %markdown_dir% ^
--pdf_dir %pdf_dir%
--to_pdf ^
--with_title ^
--rm_cache ^
--combine_together
--is_win 1
)
pause