Git Product home page Git Product logo

Comments (3)

SandyRodgers-2017 avatar SandyRodgers-2017 commented on August 31, 2024

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.

noonealive1 avatar noonealive1 commented on August 31, 2024

(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.

noonealive1 avatar noonealive1 commented on August 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.