From 185e3aba8351e226df9c561e12fed6d163143997 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 31 Oct 2023 20:38:08 +0000 Subject: [PATCH 1/5] Add gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a0cbd2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.mypy_cache/ +__pycache__ From e3ae0733eab449ad9120248557aef2197cb8f12d Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 31 Oct 2023 20:38:26 +0000 Subject: [PATCH 2/5] Add requirements.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f229360 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +requests From 729f10610fd0e06b2b0a5036efde357e300f0012 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 31 Oct 2023 20:39:19 +0000 Subject: [PATCH 3/5] Update README --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 From 4715ee7e2183132e8c32edcc1a0fb2cab94fbb88 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 1 Nov 2023 23:12:51 +0000 Subject: [PATCH 4/5] Add EuroSciPy --- check.py | 1 + 1 file changed, 1 insertion(+) diff --git a/check.py b/check.py index 03dd4f4..02772cd 100755 --- a/check.py +++ b/check.py @@ -54,6 +54,7 @@ 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/"), ] From 148e6cf6550fb6334bf60cbca9e0084f0abaaccf Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 4 Nov 2023 22:30:01 +0000 Subject: [PATCH 5/5] Add Semantic Web in Libraries and SotM Africa --- check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check.py b/check.py index 02772cd..3221970 100755 --- a/check.py +++ b/check.py @@ -55,6 +55,8 @@ conferences = [ ("Pass the SALT", "https://2024.pass-the-salt.org/"), ("SotM Baltics", "https://2024.sotm-baltics.org/"), ("EuroSciPy", "https://www.euroscipy.org/2024/"), + ("Semantic Web in Libraries", "https://swib.org/swib24/"), + ("SotM Africa", "https://2024.stateofthemap.africa/"), ]