Get a push notification when a new offer pops up on beta.gouv.fr/recrutement! 📳
As I am looking out to join a project at beta.gouv, I wanted to automate the job offers discovery, to avoid having to reload the same page over and over again.
To send a push notification to my mobile device, I chose PushNotifier. With that free service, it is possible to send notifications to an Android or iOS device, to Telegram, or even to a Webhook for more flexibility.
In order to run it locally, you will need to:
- Install Rust (or Docker if you want to run a containerized version).
- Create a PushNotifier account here.
- Generate a PushNotifier API Token here (only once you logged in) (this value will be called
API_TOKEN
). - Create an application on the same page and get:
- An app package name (this value will be called
APP_PACKAGE_NAME
) - An App Token (this value will be called
APP_TOKEN
)
- An app package name (this value will be called
- Install the PushNotifier app on your devices and log in (this will automatically add your device to the device list on PushNotifier).
- Clone the repo
git clone https://github.com/omnitrogen/beta-gouv-jobs-notif
- Create a
.env
file at the root of the project. The file should look like this:API_TOKEN="<your_api_token>" APP_PACKAGE_NAME="<your_app_package_name>" APP_TOKEN="<your_app_token>"
- Compile and run the code:
- With Rust:
- Create an optimized build with:
cargo build --release
- Run the executable:
./target/release/beta-gouv-jobs-notif
- Create an optimized build with:
- With Docker:
- Build the image:
docker build -t beta-gouv-jobs-notif .
- Remove the dangling intermediate image:
docker image prune --filter label=stage=builder -f
- Run the container:
(This is just one way to run the container, you might have a better way ¯\_(ツ)_/¯)
docker run --rm -it beta-gouv-jobs-notif
- Build the image:
- With Rust:
Distributed under the Unlicense License. See LICENSE
for more information.
- Add tests
- Unify error names