ruby / rss

RSS reading and writing
BSD 2-Clause "Simplified" License
183 stars 36 forks source link

Parsing enc:enclosure #14

Open ahoglund opened 4 years ago

ahoglund commented 4 years ago

I was attempting to parse an RSS doc with

<enc:enclosure resource="http://image_url" type="image/jpeg"/>
```xml <![CDATA[2003 ACURA CL TYPE-S (MCKINNEY) $850]]> https://dallas.craigslist.org/dal/cto/d/mckinney-2003-acura-cl-type/7109117586.html 2020-04-16T10:51:41-05:00 en-us copyright 2020 craigslist https://dallas.craigslist.org/dal/cto/d/mckinney-2003-acura-cl-type/7109117586.html text 2020-04-16T10:51:41-05:00 ```

Even with passing ignore_unknown_element to the parse method, I could not find these in the parsed results. Does this library not support these enclosures, and if not is there a plan/willingness to have it added? Enclosures seem to be a standard RSS feature: https://en.wikipedia.org/wiki/RSS_enclosure

kou commented 4 years ago

Could you provided a full RSS?

ahoglund commented 4 years ago

Sure! Just visit this link for example: https://newyork.craigslist.org/search/cta?format=rss