Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binghuan/hackernews_jobs_fetcher
https://github.com/binghuan/hackernews_jobs_fetcher
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/binghuan/hackernews_jobs_fetcher
- Owner: binghuan
- Created: 2024-07-25T19:48:50.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T19:54:32.000Z (5 months ago)
- Last Synced: 2024-07-25T22:46:51.293Z (5 months ago)
- Language: Shell
- Size: 484 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](./icon.jpg)
# HackerNews Jobs Fetcher
This is a shell script that fetches the latest job postings from Hacker News and stores them in a local SQLite database. It also allows you to search for job postings by keyword.
## Features
- Fetches the latest job postings from Hacker News
- Stores job details and webpage content in a local SQLite database
- Allows searching for job postings by keyword
- Displays search results with keyword highlighted
- Provides links back to the original Hacker News posts
- Avoids re-fetching job details if the URL has not changed## Prerequisites
- Bash
- curl
- jq
- SQLite## Installation
1. Clone this repository:
```sh
git clone https://github.com/yourusername/hackernews-jobs-fetcher.git
cd hackernews-jobs-fetcher
```2. Ensure the script has executable permissions:
```sh
chmod +x hackernews_jobs.sh
```## Usage
### Fetching Jobs
To fetch the latest job postings from Hacker News and store them in the local database, run:
```sh
./hackernews_jobs.sh fetch
```### Search Jobs
To fetch the latest job postings from Hacker News and store them in the local database, run:
```sh
./hackernews_jobs.sh search "keyword"
```## Sample of output
![](./README/sample_of_output.png)