This project is a scraper for products on ebay, with auction ending in less than 24hrs
The project uses open-uri to open http request to a customized ebay web address and creats a Nokogiri object based on the HTML parsed from the address.
- also fetches more HTML by updating the page number query string.
- once done with fetching, serves a search result page with ebay products filtered to have auction ending in less than 24hrs.
- Ruby
- Sinatra
- HTML5
- Sass
- bootstrap
- step:1 go to the link below
https://bayhunt.herokuapp.com/
- step:2 you will be presented with a page that looks like this
- step:3 type the product you want to search in the input field, select an optional page size for scraping and click on the search button
- step:4 your result will be presented as shown below
To get a local copy up and running follow these simple example steps.
- ruby
- nokogiri
- sinatra
gem install ruby
gem install nokogiri
gem install sinatra
- clone the repository, and open the repo in terminal
- run bundler to get all the necessary gems
bundle install
- start the webserver using rackup
rackup -p 4567
- open a browser, and navigate to
http://localhost:4568/
- follow the steps in option 1 starting from step 2
- You can run the tests provided under spec/scraper_spec.rb by running the following command on the root path of the repo.
rspec
👤 Binyam Hailemeskel
- GitHub: @bini-i
- Twitter: @binyamshewa
- LinkedIn: binyam hailemeskel
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!
- ebay
- Nokogiri
This project is MIT licensed.