Reading history exporter for AO3
Project description
ao3-archivist
Reading list exporter for AO3 reading history and Marked for Later.
Installation
ao3-archivist is supported on Python 3.10 and above.
You can install ao3-archivist directly from PyPI:
pip install ao3-archivist
If you’d like, you can also install from source by downloading the latest release and installing:
pip install path/to/release/file.tar.gz
If you already have ao3-archivist installed, running either of these commands will update it.
Usage
Basic Usage
To export reading history, export your AO3 cookies and run
ao3-archivist --username [USERNAME] --cookies /path/to/cookies/file.txt
If you want to export your Marked for Later, run
ao3-archivist --username [USERNAME] --cookies /path/to/cookies/file.txt --later
Documentation
> ao3-archivist --help
Usage: ao3-archivist [OPTIONS]
Exports AO3 reading history to a CSV file.
Options:
--username TEXT (required) The AO3 username to get history from.
--cookies TEXT (required) Path to the cookies file for the AO3 account.
--out TEXT Path to save the archive CSV to. (default: archivist-username-[history/markedforlater]-timestamp-pagerange.csv)
--start INTEGER Which page number to start from.
--end INTEGER Which page number to end on.
--later Flag to archive Marked for Later instead of History.
--help Show this message and exit.
FAQ
How do I get/pass cookies for ao3-archivist?
First, log in to the AO3 account you wish to use with the script. You can then extract cookies from your browser using an extension such as Get cookies.txt (Chrome) or cookies.txt (for Firefox). The extracted cookies file must be in Mozilla/Netscape format. The first line should be either # HTTP Cookie File
or # Netscape HTTP Cookie File
.
Once you have it downloaded to your computer, pass in the path to it using the --cookies
option:
ao3-archivist --username [USERNAME] --cookies /path/to/cookies.txt.
Note that you must provide the cookies for the AO3 account matching the username. If you are archiving history multiple AO3 accounts, you will need to export cookies for each one separately, while logged in to the corresponding account.
How long will it take to export my history?
To prevent excess load to AO3 servers, ao3-archivist reads 30 pages of history per minute. Ex. If you have 300 pages of history, it will take about 10 minutes to run. This script gives the option of limiting which pages to export on each run.
Can ao3-archivist remember what was already exported?
No; ao3-archivist does not save any information about what was exported. If you’d like, you can clear your AO3 history after exporting to keep things neat. If you choose to keep the default filename, it includes the page range so you can keep track of how many new pages of history were added the next time you archive. (Please note that works may change order in your history if you revisit a work from later in your history.)
Who has access to my AO3 information if I use ao3-archivist?
Only you! Your cookies are only used to access the necessary AO3 pages for archiving (reading history and Marked for Later). Your information is only stored to your computer, and is not sent anywhere else at any time.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ao3-archivist-0.1.1.tar.gz
.
File metadata
- Download URL: ao3-archivist-0.1.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0995a0ff63a77dc55da5f8e5b52b9f8d5b532ba9900ace7652188059cd0098f0 |
|
MD5 | 80d7404c60dfe95503250e2f5deb58be |
|
BLAKE2b-256 | 6b2c827fd1828520a35cd8b181817c255951f740b299d60828cc8ac06bc65947 |
File details
Details for the file ao3_archivist-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: ao3_archivist-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e9da1a334a34b7a5ec76011aad0d7cd1f40aa2f86e63869c8214baa00e05d95 |
|
MD5 | fd12d9299d41575aeee8e51eee508f8a |
|
BLAKE2b-256 | cb0d90b59e397250a419d30f600329af4ad4b48be7336a0630a9b518fbd1d5b5 |