Coder Social home page Coder Social logo

claytonsiby / web_scraper Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 42 KB

Web scraping tool built on Ruby. This web scraper pulls data/information on articles written by students from the Medium website, helping alumni to quickly get access to useful articles for their convenience.

License: MIT License

Ruby 100.00%
scraper-api httparty rubocop pry nokogiri rspec

web_scraper's Introduction

Microverse Capstone Project: Web_Scraper

This web scraper is built using Ruby Programming language. It is a capstone project that is part of the Microverse curriculum, developed to showcase the author's ability to develop a project based on Ruby & any given business logic.

Project Design:

Project output screenshot.

screenshot

This project is a Web Scraper that takes information from Medium Website. It scrapes some articles written by Microverse students & any other articles that have anything to do with Microverse in generall. The scraper takes the information retrieved from the website & uses Nokogiri gem to store everything as an object. I then took this object & retrieve each article information and display it in a way that's more readable & organised. The articles are displayed in discending order based on the number of claps ( which in this case is the popularity that you see when you run the code. )

Built With

  • Ruby
  • Rspec (testing)
  • HTTParty
  • Nokogiri
  • Rubocop
  • Colorize
  • Pry (for debugging)

SetUp

To start contributing to this project run:
git clone https://github.com/ClaytonSiby/Web_Scraper.git

Now create a feature branch & open a pull request based on development (develop) branch.

After cloning the project, you should cd into the (web_scraper) directory where the code is stored & nevigate into bin older using cd bin command on the terminal, then run: bundle install to install the necessary dependencies & lastly run: ruby main.rb to see the scraper in action.

To Run Rspec:

Open your terminal & run rspec & the program will run tests for two files (scraper.rb & structure_data.rb).

Tools Used:

  • Visual Studio Code

Author

๐Ÿ‘ค Clayton Siby

๐Ÿค Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Please show your support

Give a โญ๏ธ if you like this project!

Acknowledgments

  • Microverse.org
  • StackOverflow
  • tutorialspoint.com

๐Ÿ“ License

This project is MIT licensed.

web_scraper's People

Contributors

claytonsiby avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.