ffmirror-0.4.1
توضیحات
Local mirror for Internet fiction sites
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ffmirror-0.4.1 |
| نام | ffmirror |
| نسخه کتابخانه | 0.4.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | alethiophile |
| ایمیل نویسنده | tomdicksonhunt@gmail.com |
| آدرس صفحه اصلی | https://github.com/alethiophile/ffmirror |
| آدرس اینترنتی | https://pypi.org/project/ffmirror/ |
| مجوز | MIT |
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:
.. code:: bash
$ ffdb init
This initializes the SQLite database that tracks metadata. You can now add
authors by issuing:
.. code:: bash
$ 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:
.. code:: bash
$ ffdb update
You can update only one author by issuing:
.. code:: bash
$ ffdb update $AUTHOR_DIR
where AUTHOR_DIR is the directory with that author's stories.
نیازمندی
| مقدار | نام |
|---|---|
| >=4.7,<5.0 | beautifulsoup4 |
| >=1.0,<2.0 | html5lib |
| >=2.7,<3.0 | python-dateutil |
| >=2019.9,<2020.0 | html2text |
| >=2.22,<3.0 | requests |
| >=8.1.3,<9.0.0 | click |
| >=19.3,<20.0 | attrs |
| >=1.2.50,<2.0.0 | cloudscraper |
| >=1.4.42,<2.0.0 | SQLAlchemy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl ffmirror-0.4.1:
pip install ffmirror-0.4.1.whl
نصب پکیج tar.gz ffmirror-0.4.1:
pip install ffmirror-0.4.1.tar.gz