Quantcast
Channel: Active questions tagged feedjira - Stack Overflow
Browsing latest articles
Browse All 30 View Live

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...

View Article



How to add custom parser to feedjira?

I have a xml feed in format like this:<league country="england"><match status="15:00" time="15:00"><home name="Newcastle Utd"/><away name="Norwich"/></match><match...

View Article

Can't find List ID for a Saved RSS Entry

I’m building an RSS feed using the Feedjirra gem with the option to save feed entries into a list. When I try to edit the saved entries to add tags, or delete an entry, I get an error that it cannot...

View Article

How to skip parsing the promoted image content in RSS feed using Feedzirra /...

I am using the gem called feedjira to parse rss feeds in rails.Feedjira::Feed.add_feed_class Feedjira::Parser::RSSfeed = Feedjira::Feed.fetch_and_parse site[:url]news = feed.entriesFor example, It...

View Article

Parse Images With Feedjira

I am using the Feedjira gem, trying to render img_src.//My Controllerdef index Feedjira::Feed.add_common_feed_entry_element("image") feed =...

View Article


Get Feeds source with Feedjira Gem

I use Feedjira Gem (Rails) to fetch/grab the rss-feeds from several websites. Everything works fine, but the only that has bugged me long time is the source-feed (the website I grab the rss from).I...

View Article

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...

View Article

How do I place instances on a page without access to params in my create method?

I have three models, Subscription, Show, and Episode. Subscription's role is to parse the feed in its :url column and instantiate Show and Episode, filling their columns with Feedjira properties. I'm...

View Article


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...

View Article


Trying to Parse and Display Image Using Feedjira Gem

I'm trying to display an image using the Feedjira gem for an RSS reader that I'm working on.I created the method in the model:Feed.rbdef self.feed_image(url) Feedjira::Feed.add_common_feed_element...

View Article

Github activity feed urls dont include domain

I want to display a user's activity feed in an rails application. I am using feedjira.2.2.4 :006 > xml_feed = Feedjira::Feed.fetch_raw "https://github.com/prasadsurase.atom"2.2.4 :006 >...

View Article

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 =...

View Article

Ruby: How to set feedjira configuration options?

In the Feedjira 2.0 announcement blog post, it says that if you want to set the user agent, that should be a configuration option, but it is not clear how to do this. Ideally, I would like to mimic the...

View Article


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'...

View Article

How to scrape different URLs from database with Nokogiri with different...

I tried using Feedjira to assist with content analysis from newsfeeds, but it appears that RSS feeds now only link to content rather than including them with RSS as I found out in "Feedjira not adding...

View Article


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 =...

View Article

Gizmodo RSS Feed getting stale

I started pulling information from blogs into an app I am building using RSS. I have a cron job that runs every minute and does a fetch and parse of the rss feeds of multiple sites. New blog posts are...

View Article


When/Where to call self.update_from_feed_continuously?

Just a quick question. After watching RailsCasts ep #168 and coming across the following code:class FeedEntry < ActiveRecord::Base def self.update_from_feed(feed_url) feed =...

View Article

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...

View Article

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...

View Article

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...

View Article


Ruby on Rails save images and videos in different fields

How to save images and videos in different fields from rss feedI have enclosure_url and enclosure_typeIf this type is image save in picture fieldFor example:feed = Feedjira::Feed.fetch_and_parse...

View Article


How to check the extension type then save in the proper location

I have model with pictures and videosHow to check the enclosure_type then save in the proper location?feed_entry.rbclass FeedEntry include Mongoid::Document field :enclosure_url, type: String field...

View Article

How to add limit for the saved links in feedjira

I use ruby on rails, mongoid and feedjira to parse RSS links.How to add a limit for the number of saved feed_entries at a time or a limit by the date of the link?For example save only last 10...

View Article

Feedjira setup for YouTube rss parsing

I am trying to pull in the first video from an unlisted YouTube playlist. I found the simple_parser gem but since it hasn't been updated in a few years, I decided to go with feedjira instead. I'm not...

View Article


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...

View Article

Rails: Fetch feed entries from certain date with Feedjira

How's it going SO'ers?I've appended a Recent News section to the top of Users Dashboard, where it fetches news stories through Feedjira, saves the NewsEntry to the database (postgres) and then picks...

View Article

Parse youtube links with feedjira

I use rails 5.2, feedjira 2.1.0If I parse youtube linkI have this error:undefined method `image' for #Feedjira::Parser::AtomYoutubeEntry:0x00007fa14be348d0other links workmy code:def...

View Article

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...

View Article



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...

View Article
Browsing latest articles
Browse All 30 View Live




Latest Images