You never have to search for a top anime listicle again!.
This is a web scraper built using ruby and some scraping gems to generate a list of top anime from myanimelist.net
- Ruby
- Nokogiri
- HTTparty
- JSON
To get a local copy up and running follow these simple example steps.
Ruby installed locally
Clone repository into your local machine via :
$ git clone https://github.com/apricot12/get-top-anime
Install the gems required by running the following in terminal inside your project folder :
$ bundle install
1) Navigate into the project folder and run main.rb by typing in :
$ ruby ./bin/main.rb
2) You will be prompted to input a multiple of 50, doing so will generate a top anime list from 1 to input number.
3) Once you get an output "DONE!" in your terminal, a new anime_list.json file will be found in ./json/ folder.
4) Inside the anime_list.json you'll find the anime list ordered according to rank and rating from the site as seen in the screenshot -
5) Enjoy watching anime.. :)
You can run tests simply by running the given command in terminal :
$ rspec ./spec/tests_spec.rb
๐ค Author1
- GitHub: @apricot12
- Twitter: @apricotfoxtrot
- LinkedIn: LinkedIn
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a โญ๏ธ if you like this project!
This project is MIT licensed.