A Discord bot that posts LinkedIn job postings
Project description
linkedin-discord-bot
A simple little discord bot that will search LinkedIn job postings daily at post them to discord.
Installation
The package is on PyPi and can be installed with pip:
pip install linkedin-discord-bot
Usage
Running the bot requires either a sqlite3 or postgres database to store state of jobs and queries.
You will need the following environment variables set:
LINKEDIN_DISCORD_BOT_DISCORD_TOKEN
LINKEDIN_DISCORD_BOT_DISCORD_NOTIF_CHANNEL_ID
LINKEDIN_DISCORD_BOT_DB_CONNECTION_STRING
For a local dev flow, you can put these values in a dotenv file.
Then run the following command to start the bot. Note that the current implementation is running in the foreground.
lidb bot start
Alternative - Docker Compose
A docker compose file is provided in the repo. To use it, run:
docker compose build
docker compose create
docker compose start
The docker compose file will download a postgres container image and initiate a blank database using a local volume. It will also create an image based on the provided Dockerfile. The docker compose file references the image name. If you have built the container image using the Taskfile tasks, Docker compose will attempt to use that image before building a new one.
Dev Setup
Requirements:
Clone the repo:
git clone git@github.com:IAmSkweetis/linkedin-discord-bot.git
Use uv to sync:
uv sync
Run the following scripts for local-dev setup:
# Install chromedriver
task setup:chromedriver
# Initialize the local db
task db:init
# Run any db migrations
task db:migrate
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file linkedin_discord_bot-0.1.4.tar.gz.
File metadata
- Download URL: linkedin_discord_bot-0.1.4.tar.gz
- Upload date:
- Size: 86.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7b50680c43f3bfe0ebf29701d08e4ec2322846adf91618657b96a99e38a6c80
|
|
| MD5 |
8e126f0dad1063428106ae292300ac2b
|
|
| BLAKE2b-256 |
ee6394c52e197b69cfbc7f6ffb6d709f9fd5e67350a1b440d8785208d4a3199f
|
Provenance
The following attestation bundles were made for linkedin_discord_bot-0.1.4.tar.gz:
Publisher:
release.yml on IAmSkweetis/linkedin-discord-bot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
linkedin_discord_bot-0.1.4.tar.gz -
Subject digest:
a7b50680c43f3bfe0ebf29701d08e4ec2322846adf91618657b96a99e38a6c80 - Sigstore transparency entry: 201821590
- Sigstore integration time:
-
Permalink:
IAmSkweetis/linkedin-discord-bot@9ff899cfa5e0d07e83ab4b3bcd038472c2012929 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/IAmSkweetis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9ff899cfa5e0d07e83ab4b3bcd038472c2012929 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file linkedin_discord_bot-0.1.4-py3-none-any.whl.
File metadata
- Download URL: linkedin_discord_bot-0.1.4-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aebc82e16b7a7c2cfa3d339dc6c62dbda1c5381f14e8e9e10eaba5519c4f52ff
|
|
| MD5 |
567ff1bdad7fdc2991be2f85ed742890
|
|
| BLAKE2b-256 |
82838722579d22fc5913b830c393484e193a794db2eefdfb3d2090b7c2f60feb
|
Provenance
The following attestation bundles were made for linkedin_discord_bot-0.1.4-py3-none-any.whl:
Publisher:
release.yml on IAmSkweetis/linkedin-discord-bot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
linkedin_discord_bot-0.1.4-py3-none-any.whl -
Subject digest:
aebc82e16b7a7c2cfa3d339dc6c62dbda1c5381f14e8e9e10eaba5519c4f52ff - Sigstore transparency entry: 201821591
- Sigstore integration time:
-
Permalink:
IAmSkweetis/linkedin-discord-bot@9ff899cfa5e0d07e83ab4b3bcd038472c2012929 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/IAmSkweetis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9ff899cfa5e0d07e83ab4b3bcd038472c2012929 -
Trigger Event:
workflow_dispatch
-
Statement type: