aboutsummaryrefslogtreecommitdiff
path: root/content/notes/2023-05-23-parse-rss-with-lua.md
diff options
context:
space:
mode:
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