diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a0cbd2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.mypy_cache/ +__pycache__ diff --git a/README.md b/README.md index fd4c7d6..c53b10d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ script sends an email notification. 4. Set up a cron job to run the script periodically. For example, to run it every hour: ```bash - 0 * * * * /usr/bin/python3 /path/to/conference-check/script.py + 0 * * * * /usr/bin/python3 /path/to/conference-check/check.py ``` ## Script Description @@ -52,12 +52,20 @@ You can customize the script further by modifying the following: - `not_here_list`: Add or remove messages that indicate the website is not live. - `AGENT` and `headers`: Modify the user-agent and headers used for HTTP requests. +### How to Run + +To execute the script manually, run the following command: + +```bash +/usr/bin/python3 /path/to/conference-check/check.py +``` + ## Example -Here's an example of how to add a conference to the `conferences` list: +To add a conference to the `conferences` list, use the following format: ```python -("Example Conference", "https://example-conference.com/") +("Example Conference", "https://example-conference.com/2024/") ``` ## License diff --git a/check.py b/check.py index 3755f49..795706a 100755 --- a/check.py +++ b/check.py @@ -55,7 +55,10 @@ conferences = [ ("PyData London", "https://pydata.org/london2024"), ("Pass the SALT", "https://2024.pass-the-salt.org/"), ("SotM Baltics", "https://2024.sotm-baltics.org/"), + ("EuroSciPy", "https://www.euroscipy.org/2024/"), ("EuroPython", "https://ep2024.europython.eu/"), + ("Semantic Web in Libraries", "https://swib.org/swib24/"), + ("SotM Africa", "https://2024.stateofthemap.africa/"), ] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f229360 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +requests