feat: update readme

This commit is contained in:
phillychi3 2024-02-22 19:21:58 +08:00
parent bbfab783b5
commit 884ed824e3

View File

@ -1,21 +1,25 @@
# nhentai-favorites # nhentai-favorites
### how to use? ## how to use?
`pip install -r ".\requirements.txt"` `pip install -r ".\requirements.txt"`
open nfavorites.py and it will close and generate set.yaml open `nfavorites.py` and it will close and generate set.yaml
open set.yaml and enter your cookie and useragent open `set.yaml` and enter your cookie and useragent
final open nfavorites.py again and it will generate csv file if everything is ok final open nfavorites.py again and it will generate csv file if everything is ok
### how to get my cookie? ## how to get my cookie?
open https://nhentai.net/favorites/ open <https://nhentai.net/favorites/>
open developer tools (F12) open developer tools (F12)
switch to network tab switch to network tab
find favorites/ and click it find favorites/ and click it
find cookie and useragent in request headers find cookie and useragent in request headers
## if something goes wrong in gettags
![alt text](https://github.com/phillychi3/nhentai-favorites/blob/main/image/nhentai_cookie_anduseranegt.png?raw=true)
rename `example_tag.json` to `tag.json`
![alt text](https://github.com/phillychi3/nhentai-favorites/blob/main/image/csv.png?raw=true) rerun `nfavorites.py`
![alt text](https://github.com/phillychi3/nhentai-favorites/blob/main/image/nhentai_cookie_anduseranegt.png?raw=true)
![alt text](https://github.com/phillychi3/nhentai-favorites/blob/main/image/csv.png?raw=true)