You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
257 B
Python
12 lines
257 B
Python
2 years ago
|
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"))
|