A simple Ruby-based web scraper designed to help developers filter through job postings on the HackerNews job board, specifically targeting Ruby and Rails jobs.
For a walkthrough of the code, check out the medium post.
To get a local copy up and running, follow these simple steps.
- Ruby (tested on version 2.7.0 or later)
- Bundler
-
Clone the repo -
git clone https://github.com/Benmuiruri/ruby-web-scraper.git
-
Install required gems -
bundle install
- Open
job_scraper.rb
and customize the constantsURL
,KEYWORDS
, andOUTPUT_FILE
. get the HackerNews jobs board url for the current month - Run the script -
ruby job_scraper.rb
- Check the output file (
job_postings.txt
by default) for the filtered job postings.
- Fork the project
- Create your feature branch (
git checkout -b feature/YourFeature
) - Commit your changes (
git commit -m 'Add YourFeature'
) - Push to the branch (
git push origin feature/YourFeature
) - Open a pull request
Distributed under the MIT License.