brightdigit / syndikit Goto Github PK
View Code? Open in Web Editor NEWSwift Package for Decoding RSS Feeds.
Home Page: https://syndikit.work
License: MIT License
Swift Package for Decoding RSS Feeds.
Home Page: https://syndikit.work
License: MIT License
When I try to parse https://feeds.npr.org/344098539/podcast.xml, I get this error. Tried with another RSS parser, and it was able to parse it, so I'm not sure what's wrong exactly.
dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "Failed to decode data with several decoders.", underlyingError: Optional((extension in SyndiKit):Swift.DecodingError.Dictionary(errors: ["RSS": Swift.DecodingError.keyNotFound(CodingKeys(stringValue: "link", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "channel", intValue: nil), CodingKeys(stringValue: "item", intValue: nil), XMLKey(stringValue: "193", intValue: 193), XMLKey(stringValue: "193", intValue: 193), CodingKeys(stringValue: "link", intValue: nil)], debugDescription: "No attribute or element found for key CodingKeys(stringValue: \"link\", intValue: nil) (\"link\").", underlyingError: nil)), "Atom": Swift.DecodingError.keyNotFound(CodingKeys(stringValue: "id", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "id", intValue: nil)], debugDescription: "No attribute or element found for key CodingKeys(stringValue: \"id\", intValue: nil) (\"id\").", underlyingError: nil))]))))
To make following WordPressElements
confirming to Equatable
protocol, and their properties as public
:
Reason:
We needed them part of ContributeWordPress
testing, and their properties are inaccessible due to internal access modifier.
Hi, first a big thanks for making SyndiKit.
Unfortunately some websites and its feeds I've tested can't be decoded.
Here is an example, a german gaming website feed: https://www.gamestar.de/news/rss/news.rss
When I try to decode the data from it, a error is thrown: "The data couldn’t be read because it isn’t in the correct format."
<podcast:transcript url="https://share.transistor.fm/s/336118a1/transcript.srt" type="text/srt" rel="captions"/>
<podcast:chapters url="https://share.transistor.fm/s/336118a1/chapters.json" type="application/json+chapters"/>
TIL iTunes:email is optional
I tried out SyndiKit in my app, where I want to parse the RSS feed from CNN and the national Danish broadcasting company 'DR'. Both fail. When I try an RSS feed from the national Swedish broadcasting company 'SVT', it works fine.
I can't seem to figure out, what the difference is, that makes CNN and DR fail.
The failing RSS feeds:
The working RSS feed:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.