|
4 months ago | |
---|---|---|
media | 4 months ago | |
thread_images | 5 months ago | |
.gitignore | 5 months ago | |
README.md | 5 months ago | |
data.json | 5 months ago | |
data.py | 5 months ago | |
generate_markdown.py | 5 months ago | |
website_archives.md | 5 months ago |
A full list of archived autism from halal lolcow David Andrew Jamison Jr., plus some code for updating the data and displaying it in a user-friendly way.
The Clown Library has two main sections of autismal archives to enjoy:
Most people won't care about this or have any need to read it. It's just here because uploading completely undocumented code is even more degenerate than David himself, and I refuse to stoop to that level.
Defines the Clownlib
class, which is basically a bastardized dict
/list
/JSON object that loads/saves the website archive data stored in data.json
. Allows indexing the data like a list as well as several different key:value lookup types - examples below:
from data import Clownlib
clown = Clownlib()
#index and slice lookups, just like a regular list
clown[0]
clown[0:10]
#key:value lookup based on the original URL; can be used to check if a URL has been archived
clown['https://deviantart.com/traindodger/']
#key:value lookup based on the archived URL; can check if that archive was already recorded
clown['https://archive.md/jYp6t']
#key:value lookup based on the URL group; used to grab lists of archives for each site
clown['Derpibooru']
This script is used to automatically generate the website_archives.md
file from the less user-friendly data.json
file. It has a barebones command line implementation; just run python generate_markdown.py
to generate the file.