Skip to main content

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:

  cd ao3-archivist
  pip install .

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ao3-archivist-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ao3_archivist-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file ao3-archivist-0.1.0.tar.gz.

File metadata

  • Download URL: ao3-archivist-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for ao3-archivist-0.1.0.tar.gz
Algorithm Hash digest
SHA256 49cfc27d5d2fcb7bd80f2e571935c89eb7c90ee84fa644c15e16e0ad0c7505dc
MD5 5d187a8b492316d5bbe186780d136330
BLAKE2b-256 90d1a0f7086221c26f36ce8c75d3c1489ec4f002b5b4f8676eee69cc9a8a30d6

See more details on using hashes here.

File details

Details for the file ao3_archivist-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ao3_archivist-0.1.0-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

Hashes for ao3_archivist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 774d2f445194afbc5252d391cc81345c7a0bc0b793f86b55fc6d9db130503084
MD5 6e40e7aadd9bc7c038a1fe958e9f7e39
BLAKE2b-256 d0f1ee239673692a99f6d7405eb55365ec435bc21911dc847ed43810244e756a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page