This is the Capstone Project of the Microverse Ruby curriculum!
Explore the docs »
Report Bug
·
<a href="https://github.com/ioilmio/web-scraper/issues">Request Feature</a>
This is a scraper, a program written in Ruby.This specific scraper is built to scrape posts and authors from "Dev.to" site.Using the Nokogiri Gem to parse the HTML from the site,open URI to open the file in security, and some string manipulations to format them better for human readability.
This project was built using these technologies.
- Ruby
- Rubocop
- VsCode
- Open URI
- Nokogiri Gem
- Bundler Gem (for repl.it live Demo)
If you want to install and use the scraper you need:
-
Ruby installed in your computer, version 2.6.5 recommended.
-
Click the green button
- Clone over HTTPS
-
Go into your terminal and type
$ git clone https://github.com/ioilmio/web-scraper.git
or
$ git clone ctrl + shift + v
-
Type on your terminal bin/scraper.rb to get a list of articles.
You will get a lixt.txt file containing an Hash, in this Hash you can find clickable links for your article of interest.
To run automated tests you can just type
rspec
rspec --format doc
👤 Illuminato Salvatore
- Twitter: @ioilmio
- Github: @ioilmio
- LinkedIn @IlluminatoSalvatore
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse
- The Odin Project
- Ruby Documentation
- Nokogiri tutorial
- Dev.to For the their data, and awesomeness.