Comments (3)
All that it is saying is that your cookie information is not correct and since it is not correct it cannot login and get values.
How do you fix this then? Well you plug in all of the information necessary for the --cookie flag to work.
I use firefox to get this information. This guide will be based off of that.
First thing you do is login to nhentai using your browser in this case firefox.
You then hit F12.
You then go to Storage Tab and Find cookie. Click on Cookie
After that you plug each of the values in their respective places
nhentai --cookie="csrftoken={CSRFTOKEN};sessionid={SESSIONID};cf_clearance={CF_CLEARANCE}"
It will look something like this
nhentai --cookie="csrftoken=adfadsfafdafdsaf;sessionid=adsfasdgfagfdghuos;cf_clearance=adfjhaghvnmlcnaviuf"
hit enter and you will get some form of confirmation.
After that you then go whatismybrowser.com. This will give you you're browser useragent.
Copy and paste that value into this command and run it.
nhentai --useragent="{USERAGENT}"
After that you're username should pop up when running the command and you should be able to download and search for filtered files.
from nhentai.
(tutorial_env) C:\Users\HP>nhentai --useragent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0"
[22:55:28] [INFO] nHentai ver 0.4.16: あなたも変態。 いいね?
_ _ _ _
_ __ | | | | ___ _ __ | |_ __ ()
| '_ | || |/ _ \ ' | / ` | |
| | | | _ | __/ | | | || (| | |
|| ||| ||_|| ||__,||
Usage:
nhentai --search [keyword] --download
NHENTAI=http://h.loli.club nhentai --id [ID ...]
nhentai --file [filename]
Environment Variable:
NHENTAI nhentai mirror url
nhentai: error: no such option: --useragent
i have saved the cookie and it shows cookie saved but when i try to change useragent, above happens
and the download error still exists
from nhentai.
thank you all for helping and not helping
i solved my problem by
"pip install --upgrade nhentai"
so my bad
thanks for software RicterZ
from nhentai.
Related Issues (20)
- favorites HOT 1
- Getting Blocked by Cloudflare even though cookies and useragent are set HOT 6
- Issue with the artist filter search HOT 1
- Certain tags don't work when language is set to english. --clean-language doesn't produce any results HOT 1
- When generating CBZ or PDF in mass move them into individual folders
- --show doesn't show the date like the ComicInfo.xml does
- Download a specific title with weird character
- Consider using XDG Base Directory Specification on Linux HOT 1
- Does not work. HOT 1
- Setting mirror to nhentai.to breaks on request parsing HOT 4
- SyntaxError: invalid syntax HOT 2
- Is it possible to make download format to be '{%i}%s' rather than '[%i]%s'? HOT 1
- Not possible to CBZ folders after download?
- Executable bug not being generated and the html text wall
- I don't know how to install the pip
- Question on artist option usage
- Cookies without cf_clearance
- Request for new mirror scheme
- 'nhentai' is not recognized as an internal or external command.
- Faliure to download
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nhentai.