A Github Scraping Tool developed with Ruby and the Nokogiri gem
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][product-screenshot]][screenshot-url]
To use this scraper this is what you need to:
- Have ruby installed in your computer
- Download or clone this repo:
- Clone with SSH:
https://github.com/billodiallo/scraper-capstone-ruby.git
- Clone with HTTPS
github.com/billodiallo/scraper-capstone-ruby.git
cd
intoscraper-capstone-ruby
directory and runbundle install
- Finally, run
bin/main
in your terminal.
When you first run this github scraping tool it begins by showing you the summary info output format
Github User
-------------------------------
Name: xxxxxx (xxxxxxx)
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: xxxxxxx
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
, or followers
or following
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.
This project was built using these technologies.
- Ruby
- Rspec
- Nokogiri gem
- Colorize gem
If you wish to test it. Install Rspec
with gem install rspec
. Clone this repo to your local machine, cd into github-scraper directory and run rspec
https://www.loom.com/share/7c3fe4266fe14804bf0382caa08424a5
👤 Billo Dallio
- GitHub: @billodiallo
- Twitter: @BilloDi83547008
This project is MIT licensed.