CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 20:37:49 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"1719760028c507efc896bdb64b5cdb3f"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=qDg4un5yCSdI2gLmar1nO%2BrKjbufbFV05t5q5vJyaWArxcARRIDwE9ICh62dPUhsr7JUd6k63NxsuYc5q0pbimRu2ym9ruQnbwR1DjO%2FRPHCfYvwYZ7xuLL0CA%2FNy4efmU3lZ3etQLaaVCWWDGvf2uIez%2FInt1VD2VGTeQYej9e6OC%2BAK3R9IsBD6PxktUfGkEC89X4MUrLLelB5Nyos4JReF%2FvPl%2Bje3%2FD4xz%2F5ES43zddAfJLURq1l2oSywSDaAYp%2F16Nn5OLUZJDjjnl3cA%3D%3D--UIRIR2nESfvVu3%2BH--MudSJBdENMWtqetcPTkl9w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.371090289.1753475869; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 20:37:49 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 20:37:49 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 96A0:123CFB:AAF83:E77B2:6883EB1D
GitHub - slact/lua-feedparser: A decent RSS and Atom XML feed parser
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 9
A decent RSS and Atom XML feed parser
License
slact/lua-feedparser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
RSS and Atom feed parser, using expat via the luaExpat binding. Similar to the Universal Feed Parser (https://feedparser.org), but less good. feedparser requires LuaExpat, so you might want to make sure you've got that installed. this feedparser is directly inspired by the Universal Feed Parser by Mark Pilgrim. the output for a parsed feed is similar enough that you may consult his site for reference ( https://feedparser.org/docs/reference.html ) Usage: local feedparser=require("feedparser") -- note that for Lua < 5.3, the require exports a global "feedparser" -- In 5.3 and later, it does not. local parsed = feedparser.parse(xml_string, optional_base_url) --parsed will be a table of elements containing more or less: { version=format name and version ("atom10" or "rss20" etc), format="atom" or "rss", feed={ --feed information title="Feed Title", subtitle="Or: How To Write Haphazard Documentation In 12 Easy Steps" rights="rights, if any.", --taken from the "rights" or "copyright" tag. generator="Particularly Clicky Keyboard", --generator, if present. Atom feeds provide this tag, as does rss, under admin:generatorAgent author="John Doe", author_detail={ name="John Doe", email="", }, link="https://example.org/", links={ 1={ rel="alternate" or "self" or "related" or "via" or "enclosure" or "something else i forgot to mention", type="content type of the page the feed points to, if present", href="https://example.org/", --url is resolved. title="link title, if any" }, }, updated_parsed=1071340202, --parsed date string updated="2003-12-13T18:30:02Z", --raw date string id="urn:uuid:uuid-if-present-nil-otherwise", contributors={ --contains a list of contributors, if present. Otherwise, an empty table. }, }, entries={ 1={ enclosures={ }, id="urn:uuid:1225c695-cfb8-4ebb-whatever-if-present", link="https://example.org/2003/12/13/atom03", links={ 1={ href="https://example.org/2003/12/13/atom03", }, }, updated="2003-12-13T18:30:02Z", updated_parsed=1071340202, title="The Exciting conclusion of Atom-Powered Robots Run Amok", summary="Some text.", "contributors"={ --if any. othersie, empty table. }, }, ... }, } The following will NOT appear in the parsed feed table: feed.info feed.info_detail feed.title_detail feed.subtitle_detail feed.rights_detail feed.textinput feed.cloud feed.publisher feed.publisher_detail feed.tags feed.ttl feed.licence feed.errorreportsto entries[i].title_detail entries[i].publisher entries[i].source entries[i].comments entries[i].licence namespaces encoding --this is pretty important, so will be implemented sooner than anything else, if anyone asks for it. status gref etag modified headers bozo bozo_exception
About
A decent RSS and Atom XML feed parser
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
You can’t perform that action at this time.