You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-d, --delay <milliseconds>Delay between request in milliseconds (default: 0)
61
63
-x, --proxy <url> Use the specified proxy (example: "socks5://username:[email protected]:1234")
62
-
--days <days> Override the number of days for which the program will be loaded
63
-
(defaults to the value from the site config)
64
-
--maxConnections <number> Limit on the number of concurrent requests (default: 1)
65
-
--cron <expression> Schedule a script run (example: "0 0 * * *")
66
-
--gzip Create a compressed version of the guide as well (default: false)
67
-
```
68
-
69
-
### Access the guide by URL
70
-
71
-
You can make the guide available via URL by running your own server:
72
-
73
-
```sh
74
-
npm run serve
75
-
```
76
-
77
-
After that, the guide will be available at the link:
78
-
79
-
```
80
-
http://localhost:3000/guide.xml
81
-
```
82
-
83
-
In addition it will be available to other devices on the same local network at the address:
84
-
85
-
```
86
-
http://<your_local_ip_address>:3000/guide.xml
64
+
--days <days> Number of days for which the program will be loaded (defaults to the value from the site config)
65
+
--maxConnections <number> Number of concurrent requests (default: 1)
66
+
--gzip Specifies whether or not to create a compressed version of the guide (default: false)
87
67
```
88
68
89
69
### Parallel downloading
@@ -116,12 +96,42 @@ npm run grab --- --channels=path/to/custom.channels.xml
116
96
117
97
### Run on schedule
118
98
119
-
If you want to download the guide automatically on a schedule, you need to pass a valid [cron expression](https://crontab.guru/) to the script using the `--cron` attribute:
99
+
To download the guide on a schedule, you can use the included process manager. Just run it with desire [cron expression](https://crontab.guru/) and the `grab` options:
120
100
121
101
```sh
122
-
npm run grab --- --site=example.com --cron="0 0 * * *"
0 commit comments