Examples and some Advices
This commit is contained in:
parent
fce682d021
commit
d8030a5e22
3 changed files with 36 additions and 0 deletions
|
@ -51,6 +51,9 @@ def main(acsmFile, outputFilename):
|
||||||
print()
|
print()
|
||||||
|
|
||||||
# decrypt
|
# decrypt
|
||||||
|
if encryptedFile is None:
|
||||||
|
print("Failed to Download, try decrypting from ACSM file")
|
||||||
|
return
|
||||||
if encryptedFile.endswith(".pdf"):
|
if encryptedFile.endswith(".pdf"):
|
||||||
decryptedFile = decryptPDF(encryptedFile)
|
decryptedFile = decryptPDF(encryptedFile)
|
||||||
elif encryptedFile.endswith(".epub"):
|
elif encryptedFile.endswith(".epub"):
|
||||||
|
|
32
README.md
32
README.md
|
@ -69,7 +69,39 @@ python DeGourou.py
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
|
||||||
|
* #### Loging in your InternetArchive account
|
||||||
|
|
||||||
|
```
|
||||||
|
.\DeGourou-windows.exe -li -e abc@email.com -p myemailpassword
|
||||||
|
```
|
||||||
|
* #### To download from URL (only if your are logged in):
|
||||||
|
|
||||||
|
```
|
||||||
|
.\DeGourou-windows.exe -u https://archive.org/details/identifier
|
||||||
|
```
|
||||||
|
|
||||||
|
* #### To download from ACSM file
|
||||||
|
|
||||||
|
```
|
||||||
|
.\DeGourou-windows.exe -f URLLINK.acsm
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Advices
|
||||||
|
|
||||||
|
* Apply for [Print Disability access](https://docs.google.com/forms/d/e/1FAIpQLScSBbT17HSQywTm-fQawOK7G4dN-QPbDWNstdfvysoKTXCjKA/viewform) for encountering minimal errors while downloading from URL
|
||||||
|
|
||||||
|
* For rare books, you only able to borrow for 1hr, so to get the ACSM file from it, you have to use this below link, once after you clicked borrow
|
||||||
|
|
||||||
|
https://archive.org/services/loans/loan/?action=media_url&format=pdf&redirect=1&identifier=XXX
|
||||||
|
|
||||||
|
replace XXX with the identifier of the book, you can also change the format from "pdf" to "epub"
|
||||||
|
|
||||||
|
---
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
This project is based on the following projects:
|
This project is based on the following projects:
|
||||||
|
|
|
@ -127,5 +127,6 @@ def downloadFile(file="URLLink.acsm"):
|
||||||
success = download(replyData)
|
success = download(replyData)
|
||||||
if (success is False):
|
if (success is False):
|
||||||
print("That didn't work!")
|
print("That didn't work!")
|
||||||
|
return None
|
||||||
else:
|
else:
|
||||||
return success
|
return success
|
||||||
|
|
Loading…
Reference in a new issue