Introduction
I made a short python script to automate the mass download of images from https//:www.hanime.tv (a pretty good source for hentai pictures). The code allows you to pick which types of pictures you would like to include (futa, yuri, etc.) and then scrapes as many pages of pictures as you want. All images are then saved into a folder and can then be used for projects on here. I made this script on a Mac so it only works with Macs (there are some differences in the commands used in Windows and on Apple machines).
Instructions
The project directory can be found on github at https://github.com/Kingularity/hanime-scraper. From there, all you need to do is perform a git clone or download a compressed version of the project. Then navigate to the project folder after downloaded and it will contain a README file which tells you how to set up and run the code. The main points are as follows: I recommend you use an IDE with a virtual environment to run the code (Pycharm, Anaconda, etc.), make sure you have Chrome Version 83 (should be around the latest version) installed, and then install required modules using the command
pip3 install -r requirements.txt
in the console within your IDE. After that, you should be able to run the script (called hanime.py) and then all that's left to do is answer the user input questions presented by the code for aforementioned preferences.
If you have a different version of Chrome (not 83) you can install the proper drivers from here: https://chromedriver.chromium.org/downloads. Delete the old driver in the folder before making sure the driver is moved to the project directory where the script is.
Notes
I'm not exactly sure whether or not https//:www.hanime.tv is a popular source, so I can make a similar script for https://rule34.xxx/ if this turns out to be useful to people. Also, I know that there must be a lot of Windows users on here as well that cannot use the script I have provided. I would make a windows version, but I would be unable to test it out on my machine. For anyone who actually looks at the code, please pardon the messiness; I am basically a beginner in all things programming. Other than that, I hope you enjoy.
Feel free to tweak or improve my code. Please let me know if this is helpful or if there is any troubleshooting I can help with. I also apologize in advance if I posted this in the wrong place.
Automated Image Scraping (hanime.tv)
- Kingularity
- Curious Newbie

- Posts: 1
- Joined: Thu Feb 06, 2020 8:36 pm
Automated Image Scraping (hanime.tv)
Authority is something that is worn over your clothes
