Skip to content

Added Docker & Webhook Support - #18

Open
Ab4y98 wants to merge 23 commits into
cwwmbm:mainfrom
Ab4y98:main
Open

Added Docker & Webhook Support#18
Ab4y98 wants to merge 23 commits into
cwwmbm:mainfrom
Ab4y98:main

Conversation

@Ab4y98

@Ab4y98 Ab4y98 commented Apr 30, 2025

Copy link
Copy Markdown

Hey,
Poked around a little bit with the code and added Docker and Webhook support to it, and added cron jobs so that you can get a new job listing to the webhook.

Docker

git clone https://github.com/Ab4y98/linkedinscraper.git
cd linkedinscraper
sudo docker build -t linkedinscraper .
sudo docker run -it -p 5001:5001 linkedinscraper

Adding cron job (work every hour):

change the webhook address:

nano webhook.py

Then run the crond:

chmod +x run_cronjob
( crontab -l ; echo "0 * * * * /linkedinscraper/run_cronjob" ) | crontab -
crond

Then inside the terminal run for the first time to populate the DB:

python main.py
python app.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant