prof18 / RSS-Parser

A Kotlin Multiplatform library to parse a RSS Feed
Apache License 2.0
490 stars 126 forks source link

For This youtube url , lib is not fetching article cause it's in diff formate structure. #103

Closed rajumark closed 1 year ago

rajumark commented 1 year ago

Describe the bug https://www.youtube.com/feeds/videos.xml?channel_id=UCGp4UBwpTNegd_4nCpuBcow

I am trying to fetch this youtube url data for college project of my friend

The link of the RSS Feed I Think issue is you have limited structure in
Article.kt Mostly rss source are working , thanks man , but some cause issue.

is there any way? can we dynamic decide structure.

You can mark this bug as solved any time(no need my permission).

Thanks for reading this.

one more thing i would to like to add here , why we need context for getting data ? ,

val parser = Parser.Builder() .context(context)

-- One of your fan.

prof18 commented 1 year ago

Hi! The context is required if you want to cache the feed. I f you are not interested in that, you can simply not set the context in the Builder.

The youtube feed is an Atom, that's why isn't fully supported yet. But there's an initial work for it #94, so it could arrive in the future.

If you need a youtube feed, you can also check out my other library: https://github.com/prof18/YoutubeParser

prof18 commented 1 year ago

The Atom support is available since version 5.0.3