PhillipUg / github-scraper

A Github Scraping Tool developed in Ruby

Home Page:https://repl.it/@PhillipUg/github-scraper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github Scraper

A Github Scraping Tool developed with Ruby and the Nokogiri gem

Contributors Forks Stargazers Issues Run on Repl.it


Logo

Github Scraper

This project is part of the Microverse curriculum in Ruby module!
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

This is Github Scrapping Tool built with ruby. This Tools is built as a capstone project for completing one of Microverse's Main Technical Curriculum sections.

Product Name Screen Shot

Installation

To use this scraper this is what you need to:

  • Have ruby installed in your computer
  • Download or clone this repo:
    • Clone with SSH:
      git@github.com:PhillipUg/github-scraper.git
    
    • Clone with HTTPS
      https://github.com/PhillipUg/github-scraper.git
    
  • cd into github-scraper directory and run bundle install
  • Finally, run bin/main.rb in your terminal.

How to use

When you first run this github scraping tool it begins by showing you the summary info output format

   Github User
  -------------------------------  
  Name: xxxxxx (xxxxxx)  
  Bio: xxxxxx  
  Work: xxxxxx  
  Location: xxxxxx  
  Website: xxxxxx  
  ---------------------------------
  pinned Repositories
  ---------------------------------
  1. xxxxxx
  2. xxxxxx
  3. xxxxxx
  4. xxxxxx
  5. xxxxxx
  6. xxxxxx
  --------------------------------

After this, you are prompted to enter a valid github username. Then it returns the above output format with all the information filled in.

  Categories
  ---------------------------------
  repositories: xxxxxx
  stars: xxxxxx
  followers: xxxxxx
  following: xxxxxx
  ----------------------------------

Then you will be prompted to enter a category name to see a full list of its contents. For instance enter repositories or stars to get a list of those scrapped categories. This will continue until you exit the program by typing 'q' in the terminal and pressing Enter.

Built With

This project was built using these technologies.

  • Ruby
  • Rspec
  • Nokogiri gem
  • Colorize gem

Testing

If you wish to test it. Install Rspecwith gem install rspec. We used rspec 3.9.1 but any version not older than 3.0should work fine. Clone this repo to your local machine, cd into github-scraper directory and run rspec

Live version

You can try it live on repl.it

Video Demo

Check out this video demonstration of how I built the scraper.

Contact

👤 Phillip Musiime

Acknowledgements

📝 License

This project is MIT licensed.

About

A Github Scraping Tool developed in Ruby

https://repl.it/@PhillipUg/github-scraper

License:MIT License


Languages

Language:Ruby 100.0%