feat: add optional bookmark removal to torrent download action
This commit is contained in:
23
README.md
23
README.md
@@ -67,6 +67,27 @@ wscraper happyfappy --action get-bookmarks -c cookies.txt -o bookmarks.json
|
||||
wscraper happyfappy --action download-torrent-files -u "https://www.happyfappy.net/torrents.php?id=110178" -c cookies.txt -o torrent
|
||||
```
|
||||
|
||||
### Torrent İndir + Bookmark Kaldır
|
||||
|
||||
`--rm-bookmark` (kisa alias: `-rmb`) flag'i verildiginde, torrent dosyasi basariyla indirildikten sonra ayni torrent detay sayfasindaki bookmark remove mekanizmasi dinamik olarak bulunur ve tetiklenir.
|
||||
|
||||
```bash
|
||||
wscraper happyfappy --action download-torrent-files --rm-bookmark -u "https://www.happyfappy.net/torrents.php?id=110178" -c cookies.txt -o torrent
|
||||
```
|
||||
|
||||
Davranis kurallari:
|
||||
|
||||
- Torrent indirme basarisizsa bookmark silme adimina gecilmez.
|
||||
- `--rm-bookmark` verilmis ve bookmark silme basarisizsa komut `exit code 1` ile biter.
|
||||
- `--rm-bookmark` verilmemisse yalnizca indirme akisi calisir.
|
||||
|
||||
Bookmark remove tespiti tek bir sabit HTML selector'ine bagli degildir:
|
||||
|
||||
- oncelik `onclick`/event sinyalleri (or. `Unbookmark(...)`)
|
||||
- `id/class/href` icinde bookmark semantigi
|
||||
- remove/delete/unbookmark benzeri metin ve attribute sinyalleri
|
||||
- torrent id ile iliskili kontrol eslestirmesi
|
||||
|
||||
## 4) Kısa Alias Kullanımı
|
||||
|
||||
```bash
|
||||
@@ -74,6 +95,8 @@ wscraper happyfappy --action download-torrent-files -u "https://www.happyfappy.n
|
||||
# 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
|
||||
wscraper hf -a dtf --rm-bookmark -u "https://www.happyfappy.net/torrents.php?id=110178" -c cookies.txt -o torrent
|
||||
wscraper hf -a dtf -rmb -u "https://www.happyfappy.net/torrents.php?id=110178" -c cookies.txt -o torrent
|
||||
```
|
||||
|
||||
## 5) Proje Dizini
|
||||
|
||||
Reference in New Issue
Block a user