Files
wscraper/README.md

1.5 KiB
Raw Blame History

wscraper

HappyFappy için komutlar wscraper.py üzerinden çalışır. Proje ileride başka siteleri de destekleyecek şekilde yapılandırılmıştır.

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 -r requirements.txt
scrapling install

Windows (PowerShell)

py -3.12 -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install -U pip
python -m pip install -r requirements.txt
scrapling install

Windows (CMD)

py -3.12 -m venv .venv
.venv\Scripts\activate.bat
python -m pip install -U pip
python -m pip install -r requirements.txt
scrapling install

Not: Ortamı aktive ettikten sonra komutları python ... şeklinde çalıştırman yeterli, .venv/bin/python yazmak zorunda değilsin.

3) HappyFappy Komutları

Bookmarks Çekme

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

Torrent Dosyası İndirme

python wscraper.py 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)
python wscraper.py hf -a gb -c cookies.txt -o bookmarks.json
python wscraper.py hf -a dtf -u "https://www.happyfappy.net/torrents.php?id=110178" -c cookies.txt -o torrent