Update README.md
This commit is contained in:
parent
282ba2f695
commit
39ba27049f
78
README.md
78
README.md
@ -1,38 +1,40 @@
|
|||||||
# nhentai-favorites
|
# nhentai-favorites
|
||||||
|
|
||||||
Zǎoshang hǎo zhōngguó xiànzài wǒ yǒu BING CHILLING 🥶🍦 wǒ hěn xǐhuān BING CHILLING 🥶🍦 dànshì sùdù yǔ jīqíng 9 bǐ BING CHILLING 🥶🍦 sùdù yǔ jīqíng sùdù yǔ jīqíng 9 wǒ zuì xǐhuān suǒyǐ…xiànzài shì yīnyuè shíjiān zhǔnbèi 1 2 3 liǎng gè lǐbài yǐhòu sùdù yǔ jīqíng 9 ×3 bùyào wàngjì bùyào cu òguò jìdé qù diànyǐngyuàn kàn sùdù yǔ jīqíng 9 yīn wéi fēicháng hǎo diànyǐng dòngzuò fēicháng hǎo chàbùduō yīyàng BING CHILLING 🥶🍦zàijiàn 🥶🍦
|
Zǎoshang hǎo zhōngguó xiànzài wǒ yǒu BING CHILLING 🥶🍦 wǒ hěn xǐhuān BING CHILLING 🥶🍦 dànshì sùdù yǔ jīqíng 9 bǐ BING CHILLING 🥶🍦 sùdù yǔ jīqíng sùdù yǔ jīqíng 9 wǒ zuì xǐhuān suǒyǐ…xiànzài shì yīnyuè shíjiān zhǔnbèi 1 2 3 liǎng gè lǐbài yǐhòu sùdù yǔ jīqíng 9 ×3 bùyào wàngjì bùyào cu òguò jìdé qù diànyǐngyuàn kàn sùdù yǔ jīqíng 9 yīn wéi fēicháng hǎo diànyǐng dòngzuò fēicháng hǎo chàbùduō yīyàng BING CHILLING 🥶🍦zàijiàn 🥶🍦
|
||||||
|
|
||||||
This project is a meme but it works until you have too many favorites to scrape and you get rate limited, or so I was told by a friend, not that I would know.
|
This project is a meme but it works until you have too many favorites to scrape and you get rate limited, or so I was told by a friend, not that I would know.
|
||||||
|
|
||||||
This is the culmination of 3 years of computer science at an expensive university and totally what i should be doing in my free time
|
This is the culmination of 3 years of computer science at an expensive university and totally what i should be doing in my free time
|
||||||
|
|
||||||
Now has code that will skip a query to their API if the torrent file for that ID already exists, this may be necessary as scraping continously will get you rate limited after a while. However you seem to be allowed to download thousands of files at a time.
|
Now has code that will skip a query to their API if the torrent file for that ID already exists, this may be necessary as scraping continously will get you rate limited after a while. However you seem to be allowed to download thousands of files at a time.
|
||||||
|
|
||||||
## 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 download ?
|
## how download ?
|
||||||
|
|
||||||
After completing the steps above run scraper.py which will read your dumped ids and will download the torrent files.
|
After completing the steps above run scraper.py which will read your dumped ids and will download the torrent files.
|
||||||
Proceed to open the torrent files enmasse using your favorite torrent client (i use qbittorent)
|
Proceed to open the torrent files enmasse using your favorite torrent client (i use qbittorent)
|
||||||
|
run scraper.py until you are sure you did not get rate limited and crashed (u will see a stack trace w/ crash info when u get rate limited)
|
||||||
## how to get my cookie?
|
once completed you should run scraper.py one more time to confirm all the ids were downloaded
|
||||||
|
|
||||||
open <https://nhentai.net/favorites/>
|
## how to get my cookie?
|
||||||
open developer tools (F12)
|
|
||||||
switch to network tab
|
open <https://nhentai.net/favorites/>
|
||||||
find favorites/ and click it
|
open developer tools (F12)
|
||||||
find cookie and useragent in request headers
|
switch to network tab
|
||||||
|
find favorites/ and click it
|
||||||
## if something goes wrong in gettags
|
find cookie and useragent in request headers
|
||||||
|
|
||||||
rename `example_tag.json` to `tag.json`
|
## if something goes wrong in gettags
|
||||||
rerun `nfavorites.py`
|
|
||||||
|
rename `example_tag.json` to `tag.json`
|
||||||

|
rerun `nfavorites.py`
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|

|
||||||
|
Loading…
x
Reference in New Issue
Block a user