60 Commits

Author SHA1 Message Date
yihong0618
401c21ee35 feat: refactor and pypi 2022-08-01 20:56:19 +08:00
Frost Ming
efb51fc577 Add DeDRM switch to GUI (#82) 2022-07-27 18:01:13 +08:00
yihong0618
bba34d4169 fix: info 2022-07-26 22:43:09 +08:00
yihong0618
2400d6e32d fix: no file 2022-07-26 22:35:58 +08:00
yihong0618
7428c57e2f feat: support .de 2022-07-19 22:35:38 +08:00
刘泽森
b74493195d feat: using title of metadata instead of response's title. 2022-07-18 11:22:07 +08:00
刘泽森
5abcfe51f1 fix: can not save summary and using illegal file name.
Set encode of summary markdown file to UTF-8.
Using amazon downloaded filename to avoid illegal filename on Win OS.
2022-07-17 22:57:01 +08:00
yihong0618
64ce7df576 fix: min the bot check sleep 2022-07-07 22:03:09 +08:00
bladewang
579c01a697 pretty print json 2022-06-29 09:24:02 +08:00
bladewang
837de28685 fix typo 2022-06-29 08:51:41 +08:00
bladewang
ed0701f0e4 list books as raw json 2022-06-28 10:47:29 +08:00
bladewang
c568c4e4e5 fake user-agent 2022-06-28 08:33:15 +08:00
bladewang
193e224969 just list books 2022-06-28 08:05:11 +08:00
bladewang
132b4e5918 set filename by tile instead of filename readed from http header 2022-06-28 08:05:11 +08:00
yihong0618
93bc00cfd4 fix: typo 2022-06-27 23:36:07 +08:00
yihong0618
75e29d3173 fix: amazon bot check 2022-06-27 23:24:55 +08:00
yihong0618
6299c2695d doc: ban 2022-06-27 21:57:42 +08:00
yihong0618
7b1333df57 fix: typo 2022-06-21 22:17:10 +08:00
yihong0618
9bedc2a70b feat: generate memory readme 2022-06-21 22:06:59 +08:00
yihong0618
2c22fb34d2 doc: more info 2022-06-18 21:49:46 +08:00
yihong0618
1f333bc5c1 fix: #59 2022-06-17 20:31:05 +08:00
yihong0618
944df2d4c2 fix: #67 2022-06-17 20:15:45 +08:00
bladewang
31d9442c94 hint kindle downloader if to auto open webbrowser for user 2022-06-16 18:29:21 +08:00
bladewang
66e7668f60 set logging level by os enverionment, default INFO; log session-id 2022-06-16 15:58:51 +08:00
bladewang
03db6b1ad2 remove unnecessary waitting; abstract a function to ensure cookie and token 2022-06-16 15:12:41 +08:00
yihong0618
2b18cae372 fix: #51, more info for #63, refactor README, drop recommand to others info 2022-06-15 21:38:36 +08:00
bladewang
9a2c9523b9 fix coding style 2022-06-15 20:04:57 +08:00
bladewang
f2e554565e set csrf_token automatically. #54
* `_get_csrf_token()` worked as expect finally
 * wait for webbrowser setting cookie
 * restrict just loading amazon domain cookie
2022-06-15 19:48:14 +08:00
Frost Ming
c1bd35e2a4 Friendly error 2022-06-15 15:04:22 +08:00
yihong0618
ef2743899a fix: firendly error 2022-06-12 17:59:07 +08:00
Frost Ming
b546cb6d49 Reuse the session across runs 2022-06-12 17:49:47 +08:00
Frost Ming
3c8a46214e Add retry with backoff factor when API is denied 2022-06-12 17:41:27 +08:00
yihong0618
4ec76ab224 fix: #54 2022-06-12 16:05:48 +08:00
Frost Ming
527a337943 Get the file extension from response headers 2022-06-11 23:29:13 +08:00
Frost Ming
03f8b9fdeb More friendly error message 2022-06-11 12:05:20 +08:00
Frost Ming
3ef69ce6a4 Automatically get csrf token (#40) 2022-06-10 19:24:02 +08:00
kaiix
15b790d882 Replace "browsercookie" with more active project "browser-cookie3" 2022-06-10 15:17:23 +08:00
yihong0618
f7b90911cc feat: webbrowser open and format with black 2022-06-10 13:27:17 +08:00
Frost Ming
b83abbecd4 Pass full book dict to download_one 2022-06-10 11:10:00 +08:00
Yuning Shi
1288634cd7 Fix book indices in command line
Start book indices from 1 instead of 0. to be consistent with GUI. Also fixed the total number of books.
2022-06-09 11:36:31 -04:00
yihong0618
da6e8a6b5b feat: support amazon.jp 2022-06-09 16:17:14 +08:00
Frost Ming
c1ff196de0 add a GUI written by qtpython 2022-06-08 19:17:09 +08:00
bladewang
3ee1c2f8ba add a command line argument --pdoc to download personal documents
* batchSize 18 is fine when downloading personal documents, size 100
 would be fail (don't kown what happened in amazon backend service ...)
2022-06-08 06:25:54 +08:00
wolfg1969
de7d956370 fix help text of cut-length ; rename recover-index 2022-06-07 21:08:52 +08:00
Frost Ming
6bcb8fff4d allow loading cookies from local 2022-06-07 13:32:44 +08:00
Frost Ming
2c7b50a10e change --is-cn option to a store_const action 2022-06-07 13:29:13 +08:00
Frost Ming
57e2ec339e extract the set cookie function 2022-06-07 13:29:09 +08:00
Frost Ming
7bc7189d85 Merge pull request #7 from dgkang/main
add cookie local file
2022-06-07 13:27:19 +08:00
Z9RO
a068688c33 Escape windows filename 2022-06-06 20:48:14 +08:00
dgkang
8fd82bdbc0 add cookie local file 2022-06-06 18:49:40 +08:00