mirror of
https://codeberg.org/hyperreal/archive-fandom-wiki
synced 2024-11-01 16:43:07 +01:00
35 lines
1.3 KiB
Org Mode
35 lines
1.3 KiB
Org Mode
#+title: archive-fandom-wiki
|
|
|
|
This program archives the content of fandom wikis. It doesn't scrape from the fandom.com wiki sites directly; rather, it uses my [[https://wiki.hyperreal.coffee][BreezeWiki]] instance to avoid downloading unnecessary ads, images, and other junk.
|
|
|
|
Each resulting archive is self-contained, meaning one can extract the contents and browse the wiki snapshot locally (offline). The URLs for CSS, images, and links in each page are replaced by the relative ~file:///~ URLs for their corresponding pages on the local filesystem.
|
|
|
|
** Installation
|
|
|
|
Make sure Python and Pip are installed. Then run:
|
|
#+begin_src bash
|
|
git clone https://git.hyperreal.coffee/hyperreal/archive-fandom-wiki.git
|
|
cd archive-fandom-wiki
|
|
python -m venv venv
|
|
source venv/bin/activate
|
|
pip install -r requirements.txt
|
|
#+end_src
|
|
|
|
** Usage
|
|
#+begin_src bash
|
|
archive-fandom-wiki dishonored
|
|
#+end_src
|
|
|
|
** Podman/Docker
|
|
There is also a Containerfile, also known as a Dockerfile.
|
|
#+begin_src bash
|
|
git clone https://git.hyperreal.coffee/hyperreal/archive-fandom-wiki
|
|
cd archive-fandom-wiki
|
|
podman build -t localhost/archive-fandom-wiki:latest .
|
|
#+end_src
|
|
|
|
To run the container image:
|
|
#+begin_src bash
|
|
podman run --name archive-fandom-wiki --rm -v "${HOME}/archives:/output:Z" localhost/archive-fandom-wiki dishonored
|
|
#+end_src
|