Add files

This commit is contained in:
trémeur 2022-07-13 14:04:53 +01:00
commit 6549deda7b
9 changed files with 1092 additions and 0 deletions

11
workdown.py Normal file
View file

@ -0,0 +1,11 @@
import AO3
print("Work ID:")
thework = input()
url = "https://archiveofourown.org/works/" + str(thework)
workid = AO3.utils.workid_from_url(url)
work = AO3.Work(workid)
with open(f"{work.title}.epub", "wb") as file:
file.write(work.download("EPUB"))