rome

Java - Rome: I am trying to parse RSS feed but get a error on some channels

喜夏-厌秋 提交于 2019-12-10 22:28:25
问题 I am trying to work with rss and parse it. I found the Rome and I am trying to work with it by code: private SyndFeed parseFeed(String url) throws IllegalArgumentException, FeedException, IOException { return new SyndFeedInput().build(new XmlReader(new URL(url))); } public Boolean processRSSContent(String url) { try { SyndFeed theFeed = this.parseFeed(url); SyndEntry entry = theFeed.getEntries().get(0); ZonedDateTime entryUtcDate = ZonedDateTime.ofInstant(entry.getPublishedDate().toInstant(),

get image url of rss with rome library

烈酒焚心 提交于 2019-12-10 19:28:00
问题 I having a rss file in following : <?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title> سایپا نیوز </title> <link>http://www.saipanews.com/</link> <description></description> <language>fa</language> <item> <author></author> <pretitle></pretitle> <title>پیام تبریک دکتر جمالی به مناسبت فرارسیدن سالروز ولادت حضرت علی(ع) و روز پدر</title> <link>http://www.saipanews.com/view-6751.html</link> <pubdate>2016-04-20 10:58:00</pubdate>

Rome XmlReader not reading https feed

早过忘川 提交于 2019-12-09 23:00:28
问题 I am trying to read https://d3ca01230439ce08d4aab0c61810af23:bla@mycon.mycompany.com/recordings.atom using Rome but its giving me error INFO: Illegal access: this web application instance has been stopped already. Could not load org.bouncycastle.jcajce.provider.symmetric.AES$ECB. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. and Server returned

How to create entries with image element in the RSS Feed using the java ROME API?

ぐ巨炮叔叔 提交于 2019-12-09 13:36:54
问题 I am trying to create the RSS Feeds using java ROME API. My requirement is that every entry should contain an Image as given below: <?xml version="1.0" encoding="UTF-8"?> <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> <channel> <title>Sample RSS Build Results</title> <link>http://time.is</link> <description>sample RSS build</description> <item> <title>Ist Feed</title> <link>http://mysampleurl1.com</link> <description>The build was successful!</description> <pubDate>Mon, 08

Rome Library to read feeds Java

一曲冷凌霜 提交于 2019-12-08 08:32:58
问题 Hey people, i need to read the jpg url of this feed...: <author>asunderland@clubamerica.com.mx (Comunicación Club América)</author> <description><![CDATA[Conoce la historia de este guardameta americanista]]></description> <pubDate>Thu, 03 Jun 2010 01:06:23 CDT</pubDate> <media:content url='http://i2.esmas.com/2009/09/06/69848/navarrete-300x150.jpg'/> <media:thumbnail url=''/> <content:encoded> But this java library don't give me the function for get "media:content url='http://i2.esmas.com

While parsing RSS feed through Rome getting Content is not allowed in prolog

岁酱吖の 提交于 2019-12-08 07:08:59
问题 Using Rome API to parse the RSS feeds I am getting this error : com.sun.syndication.io.ParsingFeedException: Invalid XML at com.sun.syndication.io.WireFeedInput.build(WireFeedInput.java:210) The code is as below: public static void main(String[] args) { URL url; XmlReader reader = null; SyndFeed feed; try { url = new URL("https://www.democracynow.org/podcast.xml"); reader = new XmlReader(url); feed = new SyndFeedInput().build(reader); for (Iterator<SyndEntry> i =feed.getEntries().iterator();

Putting content:encoded in RSS feed using ROME

久未见 提交于 2019-12-08 02:51:28
问题 I'm trying to put some HTML content inside <content:encoded> tags using ROME and its modules. So far I've succesfully put mediaRSS and geoRSS in the feed, but my content is not showing up. Here's my code: ContentModule contentModule = new ContentModuleImpl(); List<ContentItem> contents = new ArrayList<ContentItem>(); List<String> contentValueDOM = new ArrayList<String>(); ContentItem content = new ContentItem(); content.setContentValue("<p>Some text here</p>"); content.setContentEncoding(

Getting Rome via Maven

别说谁变了你拦得住时间么 提交于 2019-12-07 13:35:36
问题 I'm working with Maven and I'm looking to start using Rome for a project. When I look for "rome" in my Eclipse's m2 instance, I get a few results: net.java.dev.rome:rome:1.0.0 (2010-04-17) org.rometools:rome-fetcher:1.2 (2011-03-11) <-- most recent rome:rome:1.0 (2010-05-10) On top of that, the rome project seems to be now on rometools.jira.com, as far as I can tell. And this page seems to say to use the third option, but on another repository (other than Maven central), even though the same

Unable to read image URL from feed using Rome API

对着背影说爱祢 提交于 2019-12-07 10:20:35
问题 I am using ROME parser to parse my RSS/Atom feeds. Now the problem is that it doesn't give image URL of the news feed/entry. Part of the problem is also because feeds are not consistent and they put image urls inconsistently. BBC news puts image url inside <media:thumbnail...> element <item> <title>Dementia in care homes 'more common'</title> <description>Eight out of 10 residents in care homes are now thought to have dementia or severe memory problems, new data shows.</description> <link

Where can I download ROME rss library jar? [closed]

∥☆過路亽.° 提交于 2019-12-06 18:29:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . It seems rome downloads no longer exists here (http://java.net/projects/rome/downloads). Where can I download the jar then? is it being discontinued? Thanks, David 回答1: I was able to find it here: http://download.java.net/maven/2/rome/ Source, doc and binary. There is also rome-fetcher if you need it ;). 回答2: