Socket
Book a DemoInstallSign in
Socket

eztv_scraper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eztv_scraper

0.1.6
bundlerRubygems
Version published
Maintainers
1
Created
Source

EZTV Scraper

EZTV-Scraper looks for any selected show on eztv.io and saves magnet links of every single available episode into a JSON file.

Quick Start

Install the gem from RubyGems gem install eztv_scraper

Run it anywhere eztv_scraper

Welcome

The app heavily uses assets from TTY to beautify the interface.

welcome code

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.

Parsing the page

This module parses the websites.

enter image description here

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

List of OptionsShowlist

The app goes through a sequence of methods to grab parse a new page, look for episodes, and downloads them into a file.

Downloading

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.

JSON

Built With

  • Ruby
  • httparty
  • nokogiri
  • nikkou
  • tty
  • io/console
  • json
  • byebug
  • rspec
  • vcr

Getting Started

Prerequisites

You will need Ruby 2.5 or above. Visit https://www.ruby-lang.org/en/downloads/ to get your copy.

Setup

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

Install

This command will install all necessary gems into your system to run this app.

$ bundle install

Usage/Deployment

In your terminal, run this command.

$ ruby bin/eztv-scraper.rb

Run tests

$ gem install rspec
$ rspec

Authors

👤 Simon Peter Debbarma

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

📝 License

This project is GNU General Public License v3.0 licensed.

FAQs

Package last updated on 20 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.