Closed Kayot closed 1 year ago
First, I cannot reproducted the problem with above blacklists
$ python3 -m nhentai.command --search="English" --page-range=1-20 --dry-run --sorting=recent
[18:43:29] banner: nHentai ver 0.5.2: あなたも変態。 いいね?
[18:43:29] main: Using mirror: https://nhentai.net
[18:43:29] main: Using proxy: http://127.0.0.1:7890
[18:43:29] main: Using viewer template "default"
[18:43:30] check_cookie: Login successfully! Your username: nhentai_test
[18:43:30] search_parser: Searching doujinshis using keywords "English" on page 1
[18:43:32] search_parser: Searching doujinshis using keywords "English" on page 2
[18:43:33] signal_handler: Ctrl-C signal received. Stopping...
I added debug log information on console output, you can set a env var via set DEBUG=1
to enable it
It will print the request url and the response content.
Anyway, the recent
sorting param of search API of nhentai.net maybe have bugs..
You can use --legacy
option, please refer #277
The top half of this post is a question about how I'm handling the tool, the bottom half is the issue I'm having.
Side note, today's error has made me realize that I've been using this tool wrong. I was using a bash loop over the pages when I should have been using --page-range, though I think that command is newer than the bash loop. I was on version 4.17 before today and I think version 2.x when I wrote the script.
The command I've been using is;
However recently (as of 20 mins ago) I had to add
--sorting=recent
otherwise the return was random.I was getting an error on page 1, 2 and 11. (see below the line break)
Now I'm going to use --page-range=1-20 but my goal is to just download the newest English releases, and then the newest Japanese releases. They end up in different dated folders. I've been using --search="English" and --search="Japanese" in that order to get these while relying on --save-download-history to keep from picking the same ones up. Is there a better way to do this?
I'm getting an error on a few pages;
I was wondering why it's stating no results. I don't have a lot of experience with Python so I'm unsure of how to troubleshoot this in Visual Studio Code to give a more meaningful issue report.
Edit: My tag blacklists are males only. My artist blacklist is tokuni mirashichi. My Languages blacklist is chinese. Figured this might help.