alexwlchan: (Default)
[personal profile] alexwlchan
I think it’s a bit of a shared frustration that AO3 doesn’t have a public API, which makes getting data harder than it could be.

I needed to get access to AO3 data in a Python script (specifically, some scripts for auto-tagging AO3 bookmarks on Pinboard), and so I threw together a Python module that acts as a pseudo-API. This is very rough code, written in a hurry, but it works and proves the concept. It’s probably not the easiest thing to install (sorry) but the README should give you some idea of what’s available.

Potentially of extra interest: this gives you a way to get a list of all fics where you’ve left kudos. (Albeit it very slowly, if you’ve read a lot of stuff.)

On GitHub: https://github.com/alexwlchan/ao3
pineapplechild: HELLO!, says the giant squid, wait why are you running away (Default)
[personal profile] pineapplechild
I couldn't find anything to export Ao3 bookmarks to Pinboard, so I threw together a python script to do so. Some friends of mine wanted a copy, and so I threw it up on GitHub. You have to know how to run a python script, and it relies on a couple python packages, but it's pretty simple to do.
It was a little slapped together, and is not the most beautiful code in the world, but if you want to check it out and let me know how it works for you, that'd be cool. Just remember to turn off any sort of Twitter/etc crossposting or your tlist will want to murder you for spamming. :)

Find script on GitHub

June 2021

S M T W T F S
  12345
6789101112
1314 1516171819
20212223242526
27282930   

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 22nd, 2025 03:20 am
Powered by Dreamwidth Studios