Local mirror for Internet fiction sites
Project description
ffmirror is a program to create and maintain a local mirror of stories on fiction-publishing sites. It has functionality for downloading stories similar to FanFicFare or other projects, but the differentiating factor is support for creating a local database that maintains downloaded metadata and can automatically update authors that are followed.
ffmirror has two currently maintained script entry points:
ffdl is a simple one-story file downloader. It takes a single URL and writes an HTML file story.
ffdb is the manager for local fanfic site mirrors. These maintain a local copy of metadata for a set of followed users alongside copies of all their stories.
The remaining entry points, ffadd, ffup, ffcache are designed for an older format of mirror, and are now deprecated.
ffmirror can be installed via PyPI: pip install ffmirror
To create a mirror, enter an empty directory and issue:
$ ffdb init
This initializes the SQLite database that tracks metadata. You can now add authors by issuing:
$ ffdb add $AUTHOR_URL
Adding an author will immediately download all their stories into the mirror. Stories are stored under top-level directories per author.
Updating the mirror will recheck all authors that have been added and download any new or updated stories. To update the mirror, issue:
$ ffdb update
You can update only one author by issuing:
$ ffdb update $AUTHOR_DIR
where AUTHOR_DIR is the directory with that author’s stories.
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
Built Distribution
File details
Details for the file ffmirror-0.4.1.tar.gz
.
File metadata
- Download URL: ffmirror-0.4.1.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.15.16-200.fc35.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 636c8a1a98aacb821f6ebd5502e64c62bfbde886f182eff0b68a51b1c2bfe98c |
|
MD5 | 6a552ad3d64b5f5a92af7d5ea0663256 |
|
BLAKE2b-256 | b969c7ebe79246ceb78254cc2c5a08274f2f0cedeee42773d48bc6d01c0f670f |
File details
Details for the file ffmirror-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: ffmirror-0.4.1-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.15.16-200.fc35.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b57e946f8a2346d7d1f89d795f4482719f04e71e5c72ded1e642fb018e8e9597 |
|
MD5 | ff0b3b1bf3a180c8e1ac15e4aaa2a2a2 |
|
BLAKE2b-256 | b99f5876103a903f583dfa951260617966c1cc2b5c3fff7ae962e2317e07b8fb |