Files
wscraper/README.md
2026-03-07 02:26:29 +03:00

2.3 KiB
Raw Blame History

wscraper logo

[![Gitea](https://img.shields.io/badge/Gitea-Repository-609926?logo=gitea&logoColor=white)](https://gitea.wisecolt-panda.net/wisecolt/Bookmark-Tracker) ![Python](https://img.shields.io/badge/Python-3.12%2B-3776AB?logo=python&logoColor=white) ![Platforms](https://img.shields.io/badge/Platform-macOS%20%7C%20Linux%20%7C%20Windows-1f6feb) ![Layout](https://img.shields.io/badge/Layout-src%2F%20package-0A7B83)

HappyFappy için komutlar paketlenmiş `wscraper` CLI üzerinden çalışır. Proje çoklu site desteği için `src/` paket yapısına göre düzenlenmiştir.

1) Repo Clone

git clone <REPO_URL>
cd <REPO_FOLDER>

2) Kurulum

macOS / Linux

python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
python -m pip install -e .
scrapling install

Windows (PowerShell)

py -3.12 -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install -U pip
python -m pip install -e .
scrapling install

Windows (CMD)

py -3.12 -m venv .venv
.venv\Scripts\activate.bat
python -m pip install -U pip
python -m pip install -e .
scrapling install

Not: Ortamı aktive ettikten sonra komutlar wscraper ... olarak kullanılabilir. İstersen python -m wscraper ... da kullanabilirsin.

3) HappyFappy Komutları

Bookmarks Çekme

wscraper happyfappy --action get-bookmarks -c cookies.txt -o bookmarks.json

Torrent Dosyası İndirme

wscraper happyfappy --action download-torrent-files -u "https://www.happyfappy.net/torrents.php?id=110178" -c cookies.txt -o torrent

4) Kısa Alias Kullanımı

# site alias: hf
# action alias: gb (get-bookmarks), dtf (download-torrent-files)
wscraper hf -a gb -c cookies.txt -o bookmarks.json
wscraper hf -a dtf -u "https://www.happyfappy.net/torrents.php?id=110178" -c cookies.txt -o torrent

5) Proje Dizini

.
├── pyproject.toml
├── requirements.txt
├── src/
│   └── wscraper/
│       ├── __init__.py
│       ├── __main__.py
│       ├── cli.py
│       └── sites/
│           ├── __init__.py
│           └── happyfappy.py
└── README.md