Update README
This commit is contained in:
parent
e3ae0733ea
commit
729f10610f
14
README.md
14
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:
|
4. Set up a cron job to run the script periodically. For example, to run it every hour:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
0 * * * * /usr/bin/python3 /path/to/conference-check/script.py
|
0 * * * * /usr/bin/python3 /path/to/conference-check/check.py
|
||||||
```
|
```
|
||||||
|
|
||||||
## Script Description
|
## 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.
|
- `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.
|
- `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
|
## 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
|
```python
|
||||||
("Example Conference", "https://example-conference.com/")
|
("Example Conference", "https://example-conference.com/2024/")
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
Loading…
Reference in a new issue