EZTV-Scraper looks for any selected show on eztv.io and saves magnet links of every single available episode into a JSON file.
Install the gem from RubyGems
gem install eztv_scraper
Run it anywhere
eztv_scraper
The app heavily uses assets from TTY to beautify the interface.
Most of the app doesn't pass any values or parameters to each other. They simply take your selections and downloads the data you want.
This module parses the websites.
As there are over 6500 shows listed on EZTV, I've filtered the program to parse only the Top 500 show, as ranked by IMDb. You can easily change this in the ./lib/eztv-scraper/ui.rb
file, by changing the loop to the number of shows you want. If you want the app to parse the entire site, you need to change 500
to all_shows
and un-comment when we declare all_shows
The app goes through a sequence of methods to grab parse a new page, look for episodes, and downloads them into a file.
Here's how a JSON file looks like of the scraped page. The first item is a hash of details on the show, and every following item is a hash of every available episode.
You will need Ruby 2.5 or above. Visit https://www.ruby-lang.org/en/downloads/ to get your copy.
Clone this repo onto your local machine. Make sure you have git installed or use GiHub Desktop.
$ git clone https://github.com/simonpeterdebbarma/eztv-scraper.git
This command will install all necessary gems into your system to run this app.
$ bundle install
In your terminal, run this command.
$ ruby bin/eztv-scraper.rb
$ gem install rspec
$ rspec
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
This project is GNU General Public License v3.0 licensed.