Coder Social home page Coder Social logo

web-scraper's Introduction


Logo

Dev.to latest posts

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>

Table of Contents

About The Project

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.

Built With

This project was built using these technologies.

  • Ruby
  • Rubocop
  • VsCode
  • Open URI
  • Nokogiri Gem
  • Bundler Gem (for repl.it live Demo)

Live version

Run on Repl.it

Usage

If you want to install and use the scraper you need:

  • Ruby installed in your computer, version 2.6.5 recommended.

  • Go to https://github.com/ioilmio/web-scraper

  • 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.

Automated test

To run automated tests you can just type

rspec
in the terminal inside the main directory. You can also take a look at the doc for the test running
rspec --format doc
in the same directory.

Author

👤 Illuminato Salvatore

🤝 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!

Acknowledgements

web-scraper's People

Contributors

ioilmio avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

aracelicaes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.