chore: remove generated egg-info and ignore packaging artifacts
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -11,3 +11,9 @@ docs/brainstorms/*.md
|
||||
|
||||
# Local clone used during development; package install should be used instead
|
||||
Scrapling/
|
||||
|
||||
# Packaging artifacts
|
||||
*.egg-info/
|
||||
|
||||
# Packaging artifacts
|
||||
*.egg-info/
|
||||
|
||||
@@ -1,92 +0,0 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: wscraper
|
||||
Version: 0.1.0
|
||||
Summary: Multi-site scraper CLI
|
||||
Requires-Python: >=3.12
|
||||
Description-Content-Type: text/markdown
|
||||
Requires-Dist: scrapling[fetchers]==0.4.1
|
||||
|
||||
# wscraper
|
||||
|
||||
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
|
||||
|
||||
```bash
|
||||
git clone <REPO_URL>
|
||||
cd <REPO_FOLDER>
|
||||
```
|
||||
|
||||
## 2) Kurulum
|
||||
|
||||
### macOS / Linux
|
||||
|
||||
```bash
|
||||
python3.12 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
python -m pip install -U pip
|
||||
python -m pip install -e .
|
||||
scrapling install
|
||||
```
|
||||
|
||||
### Windows (PowerShell)
|
||||
|
||||
```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)
|
||||
|
||||
```bat
|
||||
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
|
||||
|
||||
```bash
|
||||
wscraper happyfappy --action get-bookmarks -c cookies.txt -o bookmarks.json
|
||||
```
|
||||
|
||||
### Torrent Dosyası İndirme
|
||||
|
||||
```bash
|
||||
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ı
|
||||
|
||||
```bash
|
||||
# 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
|
||||
|
||||
```text
|
||||
.
|
||||
├── pyproject.toml
|
||||
├── requirements.txt
|
||||
├── src/
|
||||
│ └── wscraper/
|
||||
│ ├── __init__.py
|
||||
│ ├── __main__.py
|
||||
│ ├── cli.py
|
||||
│ └── sites/
|
||||
│ ├── __init__.py
|
||||
│ └── happyfappy.py
|
||||
└── README.md
|
||||
```
|
||||
@@ -1,13 +0,0 @@
|
||||
README.md
|
||||
pyproject.toml
|
||||
src/wscraper/__init__.py
|
||||
src/wscraper/__main__.py
|
||||
src/wscraper/cli.py
|
||||
src/wscraper.egg-info/PKG-INFO
|
||||
src/wscraper.egg-info/SOURCES.txt
|
||||
src/wscraper.egg-info/dependency_links.txt
|
||||
src/wscraper.egg-info/entry_points.txt
|
||||
src/wscraper.egg-info/requires.txt
|
||||
src/wscraper.egg-info/top_level.txt
|
||||
src/wscraper/sites/__init__.py
|
||||
src/wscraper/sites/happyfappy.py
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
[console_scripts]
|
||||
wscraper = wscraper.cli:main
|
||||
@@ -1 +0,0 @@
|
||||
scrapling[fetchers]==0.4.1
|
||||
@@ -1 +0,0 @@
|
||||
wscraper
|
||||
Reference in New Issue
Block a user