Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please help / advise - "Unhandled exception" for Rule34hentai.net #200

Open
spidernope opened this issue Feb 8, 2020 · 13 comments
Open

Comments

@spidernope
Copy link

spidernope commented Feb 8, 2020

@Nandaka - Can you remove all the other posts from this thread. Then people will only see this post with my step-by-step guide.

Forenote:
I use Microsoft Edge (chromium based) browser to extract my cookie string.
My regular browser is Firefox. I only used Edge because it was easier to fully extract the entire cookie string. I tested Chrome but the cookie string seemed incomplete.

DanbooruDownloader changes:
If you are using the newest version, the program will ask you to input your cookie string for rule34hentai.net at launch. This pop-up can be disabled, I will explain how in the step by step guide.

Step by step guide (2022 edition, no more script editing!):

  1. Download Edge from https://www.microsoft.com/en-us/edge
  2. Go to rule34hentai.net
  3. Wait for the CloudFlare check to complete
  4. Login with your account
  5. Browse to the main page https://rule34hentai.net/post/list
  6. Press "F12" to enable developer mode and click on the tab "Network"
  7. Press “Crtl + R” to load website data
  8. Click on the “Type” column to sort all the data
  9. Click on "List" in the "Name" column
  10. Under “Request Headers” copy the "cookie" and "user-agent" to a notepad
  11. Open DanbooruDownloader (if you are opening the program for the first time. It will ask you two things:
    -a cookie string for rule34hentai.net, which you can input or ignore
    -download tags, I suggest you select Yandre
  12. Click on "Edit" on the "main" tab
  13. In the new window select rule34hentai.net from the "provider" drop down menu
  14. Copy/Paste the entire "cookie" string into the field next to "UserName"
  15. Next to "LoginType" you can select either of two options: "Cookie" or "CookieAlwaysAsk"
    -CookieAlwaysAsk = gives the pop-up when you launch the program
    -Cookie = gives no popup when you launch the program
  16. Click on "Save" followed by "OK"
  17. Click on "Settings" tab
  18. Copy/Paste the entire "user-agents" string into the field next to "User Agents"
  19. Click on "Save"

Remember:
-The CloudFlare check creates a session, this session is valid for 15min max
-Update the User-Agents string often, as browsers are updated constantly

@spidernope spidernope changed the title Issue please help / advise. Issue please help / advise - "Unhandled exception". Feb 10, 2020
@spidernope spidernope changed the title Issue please help / advise - "Unhandled exception". Please help / advise - "Unhandled exception". Feb 10, 2020
@Nandaka
Copy link
Owner

Nandaka commented Feb 12, 2020

yep, checked the data retrieved from the url and it returns cloudflare page.

@Nandaka
Copy link
Owner

Nandaka commented Feb 12, 2020

You can try this:

  1. Open the website using browser (I'm using Vivaldi), ensure the Cloudflare check is completed, and then get the cookie value from Developer Tools
    by pressing F12 and navigate to Network tab (you might need to refresh the page).
  2. Copy the cookie value and user agent. image
  3. Using Notepad, edit the DanbooruProviderList.xml and paste the whole cookie value to the Username section. Ensure the LoginType = Cookie.
    image
  4. Using Notepad, edit DanbooruDownloader3.exe.config and update the user agent based on your browser value.
    image
  5. Open the application and check if it can get the list.
    image

@Nandaka
Copy link
Owner

Nandaka commented Feb 12, 2020

You need to be logged in to the site. This is the page that I use on that page:
https://rule34hentai.net/index.php?q=/rss/images/3D/1

@azzxxa
Copy link

azzxxa commented Feb 12, 2020

i tryed but can't work what should i do?

@ghost
Copy link

ghost commented Feb 15, 2020

@spidernope yes please, on Firefox here

@ghost
Copy link

ghost commented Feb 15, 2020

I installed Vivaldi, did the same as @Nandaka, but I am getting crashes when I select the website in "Provider" and search for a tag.
https://pastebin.com/mcFtTMHn

@Nandaka
Copy link
Owner

Nandaka commented Feb 17, 2020

most likely you paste the cookie value incorrectly in DanbooruProviderList.xml, make sure you copy the whole value and ensure the closing bracket is not accidentaly deleted in the xml.

@ghost
Copy link

ghost commented Feb 17, 2020

I think it's because I don't have log4net and HtmlAgilityPack installed. Do you have a download link for log4net 1.2.11 (newkey) and HtmlAgilityPack because I can only find the download link for 2.0.8 on logging.apache.org and I don't know how to install HtmlAgilityPack from nuget.org.
Windows 10 here btw

@ghost
Copy link

ghost commented Feb 19, 2020

I'm getting this error when I search for something https://i.imgur.com/3ld2DaO.png

@ghost
Copy link

ghost commented Feb 20, 2020

I don't have log4net 1.2.11 and HtmlAgilityPack. Did you install those packages, and how? I can't find it on the log4net's website and I don't know how to install HtmlAgilityPack because they don't have an option for Windows

@Nandaka
Copy link
Owner

Nandaka commented Feb 20, 2020

log4net: https://logging.apache.org/log4net/download_log4net.cgi get the latest version should be ok.
HtmlAgilityPack: https://www.nuget.org/packages/HtmlAgilityPack/ use nuget to install the package from your visual studio.

@Nandaka Nandaka changed the title Please help / advise - "Unhandled exception". Please help / advise - "Unhandled exception" for Rule34hentai.net Mar 9, 2020
@lee27
Copy link

lee27 commented Mar 17, 2020

sorry but I don't know what this cloudflare is

@kyummii
Copy link

kyummii commented Nov 6, 2022

Thank you very much :))

@Nandaka Nandaka pinned this issue Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants