aboutsummaryrefslogtreecommitdiff
path: root/content/notes/2023-05-23-parse-rss-with-lua.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-10-31 11:05:28 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-10-31 11:05:28 +0100
commitc9d51c7de97f8af318fa7eb866c138a69676e1d7 (patch)
tree18f51726efa1ea45366d4e0f01a99888cf51d995 /content/notes/2023-05-23-parse-rss-with-lua.md
parent6ee7245390cdf4e19fef82c2423ba325adea4114 (diff)
downloadmitjafelicijan.com-c9d51c7de97f8af318fa7eb866c138a69676e1d7.tar.gz
Made a bunch of content fixes
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.md3
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:
16local http = require("socket.http") 16local http = require("socket.http")
17local feedparser = require("feedparser") 17local feedparser = require("feedparser")
18 18
19local feed_url = "https://mitjafelicijan.com/feed.rss" 19local feed_url = "https://mitjafelicijan.com/index.xml"
20 20
21local response, status, _ = http.request(feed_url) 21local response, status, _ = http.request(feed_url)
22if status == 200 then 22if status == 200 then
@@ -38,4 +38,3 @@ else
38 print("! Request failed. Status:", status) 38 print("! Request failed. Status:", status)
39end 39end
40``` 40```
41