PayNexus
目次
プロジェクトについて
PythonからWayback Machineのアーカイブ(サイト)をダウンロードするモジュールです。
ベースモジュール
公式サイト
・公式Github(使い方など)はこちら
インストール方法
こちらのPyPIパッケージを、
pip install ArcDLNexusなどのコマンドでインストールしてください。
※お好みでバージョンを指定してください
環境
| 言語・フレームワーク | バージョン |
|---|---|
| Python | 3.9.19 |
モジュール(パッケージ)のバージョンは requirements.txt を参照してください
モジュールについて
タスク
- モジュールを公開する
ドキュメント
| 関数 | パラメータ | 説明 |
|---|---|---|
| download | url -- str: アーカイブのURL* | アーカイブは次のような形式で、日付が指定されている必要があります。https://web.archive.org/web/{アーカイブの日付}/{サイトのURL} |
| path -- str: ファイルを保存するフォルダパス | c:\のような絶対パスではなく、OSに縛られない./などの相対パスのみサポートしています。デフォルトは「./archive_download」です。 | |
| mode -- str: モード(0~2) | モードは3種類に分けられています。 | |
| モード0 - アーカイブをダウンロードして復元のみ: ウェブページをアーカイブからダウンロードして元の状態に復元し、関連ファイルはダウンロードされず、ページの表示に必要なファイルやリソースはすべてアーカイブ前のURLから取得します。 | ||
| モード1 - 関連ファイルを可能な限りダウンロード + モード0の機能: ウェブページのアーカイブをダウンロードし、そのページに関連するファイル(画像、スクリプト、スタイルシートなど)も可能な限りダウンロードし、ページを完全に表示するために必要なすべてのリソースが揃います(手動処理必要)。 | ||
| モード2 - ダウンロードしたファイルで既存の関連ファイルURLを上書き + モード0と1の機能: ウェブページのアーカイブをダウンロードし、関連するすべてのファイルをダウンロードし、必要なファイルやリソースのURLをダウンロードしたファイルのパスに上書きし(ダウンロードできなかった場合はスルー)、ページを完全にオフラインで閲覧できるようにします。 |
使用例
import ArcDLNexus
ArcDLNexus.download(url="https://web.archive.org/web/20240204090521/https://home.disnana.com/",
path="./recovery_archive/",
mode=2)
※タスクが完了していてもモジュールが更新されていない場合がございます(その際は時間を空けてご確認ください)
Metadata
Release files for ArcDLNexus 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arcdlnexus-0.1.5.tar.gz | 6.7 kB | Without provenance | Details for arcdlnexus-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ArcDLNexus-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for ArcDLNexus-0.1.5-py3-none-any.whl |
Total release size: 14.0 kB
Release files / arcdlnexus-0.1.5.tar.gz
| Download URL | arcdlnexus-0.1.5.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1ed01b27702bb6e5b3c73aaa7220fe2eb63a12337088486480a505f1a19c8a6
|
|
BLAKE2b-256 checksum How to use checksums |
0bd9cbd39e795a764b902695b43dfff51945623f2b14c7f8f7f79726959730db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.13
|
Release files / ArcDLNexus-0.1.5-py3-none-any.whl
| Download URL | ArcDLNexus-0.1.5-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf274d51d7fab64f9af21eae69f876433a0658a07bc6e06c5d8950de4c527233
|
|
BLAKE2b-256 checksum How to use checksums |
01add76be40f8f23ce204e2f7d736b7200c02cb8e09bffa11367a72fd331367e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.13
|
Security for ArcDLNexus 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.