feedzirra

    2热度

    1回答

    我正在使用Feedzirra,并试图根据发布日期对源数据进行哈希排序。我没有收到任何错误,只是没有排序。以下是我的控制器中的代码: class ClassifiedsController < ApplicationController def index require 'feedzirra' feed_urls = ["http://newjersey.craig

    -1热度

    1回答

    我在确定如何实施Feedzirra时非常沮丧。我有两个选择工作。我应该执行哪一个? 我有Railscast#168 Feed分析示例工作。它使用基于ID,GUID或URL的entry.id,具体取决于哪个可用。 (OBTW ...我将它从Rails 2升级到了Rails 4,除了测试场景以外,还有其他工作要做......) 我有用于Feedzirra操作的github示例版本。它基于Etag和上次

    0热度

    2回答

    好的我正在向服务器发送JQuery .post请求以插入一些数据。它仅在有时取决于Rails创建方法中的方法。 以下是具体细节。我在前端有一个带Backbone.js的Rails应用程序。在我的前端代码中,我做了这个.post请求 $.post('/publications'); 看起来很简单。我有一个出版模式以及 resources :publications 在路由器。现在在我的出版物

    0热度

    1回答

    我有一个Rails应用程序(3.2.11,Ruby 1.9.3),我正尝试使用feedzirra来阅读http://www2c.cdc.gov/podcasts/createrss.asp?t=r&c=66的提要。纵观原料来源XML,这是条目的样子:正如你所看到的,这似乎饲料 <item> <title>In the News - Novel (New) Coronavirus in t

    -1热度

    1回答

    在Feedjira 2.0的公告博客文章中,它表示如果你想设置用户代理,那应该是一个配置选项,但目前还不清楚如何做到这一点。理想情况下,我想模仿之前在Feedjira 1.0中提供的选项,包括user_agent,if_modified_since,timeout和ssl_verify_peer。 feed_parsed = Feedjira::Feed.fetch_and_parse("http

    2热度

    1回答

    我想安装feedzirra,但我遇到了麻烦。 当我安装Feedzirra时,它寻找curb (0.7.18)。 我按照说明在Windows上安装路边 >gem install curb -- --with-curl-lib=C:/curl-7.27.0-devel-mingw 32/bin --with-curl-include=C:/curl-7.27.0-devel-mingw32/incl

    0热度

    2回答

    我有有这一行中有一个FeedEntry.rb: class FeedEntry < ActiveRecord::Base def self.update_from_feed(feed_url) feed = Feedzirra::Feed.fetch_and_parse(feed_url) end 当我尝试打电话FeedEntry.update_from_feed("http://fe

    3热度

    1回答

    下面的代码是从Feedzirra要点得到从RSS提要的更新内容: feed = Feedzirra::Feed.fetch_and_parse(feed_url) feed = Feedzirra::Feed.update(feed) do_something_with_new_feed(feed.new_entries) if feed.updated? 我不明白Feedzirra怎么会

    1热度

    1回答

    我使用Feedzirra时出现LoadError - “太多打开的文件”。我使用默认的WEBrick服务器在我的开发服务器上运行它。 我只解析2个提要。问题是什么?

    0热度

    2回答

    我有两个模型公司和新闻 如何使新闻每30分钟下载一次? 我已经通过宝石“只要”尝试,什么都不会发生 class Company < ActiveRecord::Base after_save :load_news def load_news last_entry = self.news.last if last_entry.nil? feed