diff options
Diffstat (limited to 'content/notes/2023-05-23-parse-rss-with-lua.md')
| -rw-r--r-- | content/notes/2023-05-23-parse-rss-with-lua.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/content/notes/2023-05-23-parse-rss-with-lua.md b/content/notes/2023-05-23-parse-rss-with-lua.md index c2cdcbc..ecd33d5 100644 --- a/content/notes/2023-05-23-parse-rss-with-lua.md +++ b/content/notes/2023-05-23-parse-rss-with-lua.md | |||
| @@ -16,7 +16,7 @@ Example of parsing RSS feeds with Lua. Before running the script install: | |||
| 16 | local http = require("socket.http") | 16 | local http = require("socket.http") |
| 17 | local feedparser = require("feedparser") | 17 | local feedparser = require("feedparser") |
| 18 | 18 | ||
| 19 | local feed_url = "https://mitjafelicijan.com/feed.rss" | 19 | local feed_url = "https://mitjafelicijan.com/index.xml" |
| 20 | 20 | ||
| 21 | local response, status, _ = http.request(feed_url) | 21 | local response, status, _ = http.request(feed_url) |
| 22 | if status == 200 then | 22 | if status == 200 then |
| @@ -38,4 +38,3 @@ else | |||
| 38 | print("! Request failed. Status:", status) | 38 | print("! Request failed. Status:", status) |
| 39 | end | 39 | end |
| 40 | ``` | 40 | ``` |
| 41 | |||
