Questions tagged [feedjira]

Feedjira (formerly Feedzirra) is a Ruby library designed to fetch and parse feeds.

40 questions
3
votes
0 answers

Rails Feedjira gem unable to parse RSS with xml-stylesheet

I use Feedjira gem v2.0 in my Ruby on Rails project to parse RSS feeds. Recently, I have encountered this feed https://www.deutschlandfunknova.de/podcast/update which it is unable to parse. If I omit following line from the feed, then it…
Mohsin Sethi
  • 803
  • 4
  • 16
3
votes
2 answers

Feedjira: VCR not recording cassetes

I have a very simple controller that grabs some data from rss using Feedjira. I want to test this controller by recording the RSS response. Here is the controller code: def index @news = Feedjira::Feed.fetch_and_parse…
Daniel Cukier
  • 11,502
  • 15
  • 68
  • 123
2
votes
1 answer

How to get videos from rss feed entries

I am trying to get videos(urls) from feed entry url. I am using Feedjira and MetaInspector in my application to fetch and store articles along with images. Now I want to store videos of articles if any. Can anyone please tell me what could be the…
anusha
  • 2,087
  • 19
  • 31
1
vote
1 answer

Feedjira: Can you parse multiple URLs?

EDIT** From this post Jon mentions that he wants to move away from concurrency in 2.0, and instead a single url be passed and concurrency dealt with in the application, workers being the likely approach. I'm trying to parse multiple URLs with…
VegaStudios
  • 378
  • 1
  • 4
  • 22
1
vote
3 answers

Rails: Timeout when opening file on same server

I have a Rails controller method that does nothing but opens a file on the same server: open 'http://lvh.me:3000/feeds/madonna.rss' About 60% of the time, when I start the server, and hit this controller method, the 'open' call times out…
99miles
  • 10,942
  • 18
  • 78
  • 123
1
vote
0 answers

How to access xml in Feedjira parser classes

Say I have the following Feedjira nested parser subclasses. How can I access the xml for the Trunk, Branch, and Leaf classes so I can log/save it in the case of an error? Preferably just the xml for the parsed element, but I'd take the xml for the…
Uilleann
  • 506
  • 4
  • 14
1
vote
0 answers

How to fetch rss feeds from website using rails

I am using Feedjira in my application which is an excellent option to get rss feeds and getting all feeds when we provide a valid feed URL. But Now I want to get feeds when I provide website url instead of feed url. Unfortunately, I am not getting…
anusha
  • 2,087
  • 19
  • 31
1
vote
0 answers

Rails - Feedjira No valid parser for XML

I used Feedjira gem in rails. I want to get some data from URL but I got an error like this: Feedjira::NoParserAvailable No valid parser for XML. My code: url =…
Karthick
  • 433
  • 1
  • 10
  • 25
1
vote
2 answers

Feedjira not adding content and author

I've just started on Rails again and have recently followed the Sitepoint guide to building an RSS Feed app. I followed the instructions verbatim, but am getting the error undefined method 'html_safe' for nil:NilClass. I've looked into the database…
Dave C
  • 367
  • 5
  • 19
1
vote
0 answers

Feedjira gem does not work on Heroku

I am using the Feedjira gem on Rails 4 to display feeds on my web application. Currently it is working locally, however when I push the application to Heroku for production I get a blank page with no feeds. I have researched online but I have not…
wal2.0
  • 23
  • 7
1
vote
0 answers

Error when I try to load feed entries in feedjira

I have error when I try to load feed entries ArgumentError (wrong number of arguments (2 for 1)): I use feedjira 2.0, mongoid No error when using 1.6.0. def load_feed_entries last_entry = self.feed_entries.last if last_entry.nil? …
Anton Ipatov
  • 169
  • 2
  • 14
1
vote
1 answer

RSS - Feedjira updates, clock work gem in rails

I am new to rails so I watched railscast #168 to get an understand of how feedjira works. I got an idea how it works now. I got the functionalities to work as well. Where I struggle is at the update section, I can't get the "15 min" update to work.…
1
vote
1 answer

Rails: How can I parse an RSS file with Feedjira

I'm trying to parse an RSS file. It throws a 404 response when I do: Feedjira::Feed.fetch_and_parse url So I thought trying: Feedjira::Parser::RSS.parse url But that returns 0 entries This is exactly what I'm trying: <%…
user2755140
  • 1,917
  • 4
  • 13
  • 16
1
vote
1 answer

Feedjira: Feed update returns duplicates

I am trying to print rss/atom feed updates using ruby. Feedjira seems to be the best bet for this. Unfortunately the update feature does not seem to work properly. I get duplicate entries. Here is a simple example that produces the problem: require…
NaN
  • 7,441
  • 6
  • 32
  • 51
1
vote
1 answer

How to get Feedjira to follow redirects?

I am using Feedjira's fetch_and_parse method to parse RSS feeds in my app, but some RSS feeds that I feed it are feed URLS that redirect to another feed URL, and Feedjira doesn't follow these redirects and my fetch_and_parse fails. Is there a way to…
tommybond
  • 650
  • 6
  • 19
1
2 3