Skip to content

User-friendly command line tool to help you automatically migrate your favorites to/from NHentai and E-Hentai. HentaiMigrator supports automatic export, conversion, and import of favorites.

License

Notifications You must be signed in to change notification settings

HorseWhisperer69/HentaiMigrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A user-friendly command line tool to help you automatically migrate your Hentai favorites to/from NHentai and E-Hentai. HentaiMigrator supports automatic export, conversion, and import of favorites - all you need to do is connect your accounts and HentaiMigrator will do all the hard work for you.

Get started

Warning

HentaiMigrator makes a lot of requests to the individual Hentai repositories. As such, it is recommended to connect to a VPN to prevent your home IP address from getting banned (bans typically last for 1h).

Head on over to the Releases page and download the latest executable for your platform. Extract the zip archive and run HentaiMigrator.exe. The command line tool will guide you through the migration process. Progress is saved automatically in case the program crashes mid migration.

Retrieving your User-Agent and Cookie

In order to migrate your favorites, HentaiMigrator needs to authenticate with your Hentai repository accounts. This is done by supplying your User-Agent and Cookie. Please see the guide below, adapted from1, on how to do this:

  1. Open NHentai/E-Hentai in your browser: Navigate to the NHentai/E-Hentai website.
  2. Login to the website: If you are not already logged-in, do so as you would normally.
    • For E-Hentai: If your account can access it, switch your website to https://exhentai.org/. Some content is restricted on https://e-hentai.org and switching ensures that the retrieved Cookie can be used to query it.
  3. Open Developer Tools:
    • For Google Chrome: Right-click on the webpage and select Inspect or simply press Ctrl + Shift + I (or Cmd + Option + I on Mac).
    • For Firefox: Right-click on the webpage and select Inspect Element or press Ctrl + Shift + I (or Cmd + Option + I on Mac).
  4. Navigate to the Network Tab: In the Developer Tools panel, click on the Network tab. This tab captures all network requests made by the webpage.
  5. Reload the Page: With the Network tab open, reload the website by pressing Ctrl + R (or Cmd + R on Mac). This ensures that all network requests are captured.
  6. Select the first nhentai.net/e-hentai.net Request: After reloading, you'll see a list of files on the left side of the Network tab. Click on the first file with Status 200 and Name nhentai.net/e-hentai.org depending on which website you are on. This represents the main request to the website.
  7. Find the Request Headers: On the right side, you'll see several tabs like Headers, Preview, Response, etc. Make sure you're on the Headers tab. Scroll down until you find a section named Request Headers.
  8. Copy either the User-Agent or Cookie and paste it into HentaiMigrator when prompted:
    • User-Agent: This is a string that tells the server which web browser is being used. Look for an entry named User-Agent and copy its value.
    • Cookie: This is a string that stores information about your current session. Look for an entry named Cookie and copy its value.
      • For NHentai: Make sure the string contains csrftoken= and sessionid=.
      • For E-Hentai: Make sure the string contains ipb_member_id= and ipb_pass_hash=.

Contact

For any issues concerning the software please submit an Issue through Github or contact me on Discord (horse_whisperer). If you'd like to contribute please submit a pull request to the dev branch.

Footnotes

  1. Enma - a Python library designed to fetch and download manga and doujinshi data from many sources including Manganato and NHentai.

About

User-friendly command line tool to help you automatically migrate your favorites to/from NHentai and E-Hentai. HentaiMigrator supports automatic export, conversion, and import of favorites.

Topics

Resources

License

Stars

Watchers

Forks

Languages