Coder Social home page Coder Social logo

evertonoliveira031 / nhentai-favorites-auto-pagination Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicweeaboo/nhentai-favorites-auto-pagination

0.0 0.0 0.0 30 KB

This is an infinity randomly picker doujinshi from yours favorite list with auto scroll and pagination

Ruby 100.00%

nhentai-favorites-auto-pagination's Introduction

NHENTAI READER - INIFINITY FAVORITE RANDOM PICKER WITH AUTO SCROLL AND PAGINATION

This is a simple and shit ruby script written with 'watir' gem to automate the use of nhentai. You just have to put your username and password and just run program.

What it does ?

It creates a new instance of chrome incognito mode which will run infinitely a while loop to pick randomly a doujinsh from your favorite list. It has an smooth auto scroll due the image size and auto pagination. Hands free!

You can speed up things by changing the sleep values.

You can see the code working bellow https://imgur.com/gallery/svCdLBe

How to run

Ruby Installation

First all, you need to have Ruby programming language installed.

Linux (Ubuntu 18.04) sudo apt install ruby-full

MacOS Check out this site https://stackify.com/install-ruby-on-your-mac-everything-you-need-to-get-going/

Windows Check out this site https://rubyinstaller.org/

Check if ruby was installed succesfully by running ruby -v

Dependencies

Gems

You just need to install the watir gem. Run the following command. gem install watir

Drivers

Now you need to install the firefox or chrome driver in order to run the script. I went through a little bit of trouble to install these things but I'm really clueless with some things. So I will show how I installed the Geckodriver for Firefox on the Ubuntu 18.04 OS. If you are using Windows or MacOS I recommend you guys search how to install because I have no ideia. This link might be useful for Windows users https://medium.com/ananoterminal/ambientar-selenium-no-windows-3b880fa0e827

First of all, go to https://github.com/mozilla/geckodriver/releases and download the proper driver and extract the file. Now you need to make it executable. Open the terminal and change the directory to where the file is. Just for the sake of illustration, If the driver was downloaded in the Downloads folder, in your terminal run cd Downloads Now run chmod +x geckodriver sudo mv geckodriver /usr/local/bin/ You placed the driver where your tools can find it. If does not worked by any reason you can check https://askubuntu.com/questions/870530/how-to-install-geckodriver-in-ubuntu for other solutions.

Running

  1. First of all, you download the script.

  2. Open the nhentai.rb with a text editor and put your login where it says 'USER_NAME' and 'PASSWORD' (don't remove the quotes)

  3. Open your terminal and change the directory to where the program is located.

  4. Run the script. ruby nhentai.rb

Enjoy.

nhentai-favorites-auto-pagination's People

Contributors

nicweeaboo avatar gregory280 avatar

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.