Skip to content

Web Scraper program created with Ruby. It checks for the next events and current surfers on the top ranking from a chosen country. Info from the World Surf League website.

Notifications You must be signed in to change notification settings

thneves/WSL-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSL scraper

This project is a web scraper of the World Surf League website to get text info about events and surfers, and display it on terminal.

  • The program has 2 options of Scraping: Events and Surfers.

  • In both options you can filter your scraping by country.

  • For events you can check all WSL events around the year in the choosen country.

    • It will be specified by date, event name, location and tour type.

Display Events

  • For surfers you can check the top 35 surfers in the Championship Tour.
    • It will display the actual surfer rank, name and url link for more information.

Display Surfers

Built With

  • Ruby
  • Rspec

Gems:

  • Nokogiri
  • Open Uri

Live Demo

Live Demo Link

  • type 'cd bin/' in the repl.it terminal/shell, then type'ruby main.rb' to run the program

Prerequisites

  • Ruby
  • Linux (if you don't use linux use the live demo above)
  • Rspec
    • Type: 'gem install rspec' in your terminal

Get started

  • Create a folder to download the program

    • Option 1: You can click in the green button Code above use the Download ZIP option to download the files
    • Option 2: Clone this repository to your computer. Open the terminal in the folder you create and paste this git clone git@github.com:thneves/WSL-scraper.git, now you have files you need.
  • Open the terminal in the respective folder.

  • Type gem install bundler in the terminal and wait installation.

  • Type 'bundle install' to install the packages to the program work.

  • Type 'cd /bin' in the terminal to navigate to the file where you execute the program.

  • Type ruby main.rb to run the program

  • Follow the program instructions

  • Have Fun 🏄

Testing

  • To run the tests in the program type rspec in the terminal inside the program folder

Author

👤 Thales Neves

Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Support this project

Give a ⭐ if you like this project!

Acknowledgements

WSL World Surf League

About

Web Scraper program created with Ruby. It checks for the next events and current surfers on the top ranking from a chosen country. Info from the World Surf League website.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages