РЕДАКТИРОВАТЬ ** С этого поста Джон упоминает, что он хочет отойти от параллелизма в 2.0, и вместо этого будет передан один URL-адрес, и в приложении рассматривается параллелизм, причем подход.
Я пытаюсь проанализировать несколько URL-адресов с помощью FeedJira
(использует farday
gem), но получаю ошибку аргумента. Кто-нибудь в прошлом успешно разбирал более одного URL? Источник для FeedJira :: Feed заявляет, что он возвратит один URL-адрес канала или массив URL-адресов канала.
.fetch_and_parse(urls, options = {}) ⇒ Object
Сценарий
feed_urls = ["https://jobs.startupnorth.ca/jobs.rss", "https://jobs.startupnorth.ca/jobs.rss"]
feed = Feedjira::Feed.fetch_and_parse(feed_urls)
ошибка
ArgumentError: bad argument (expected URI object or URI string)
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/faraday-0.15.0/lib/faraday/utils.rb:277:in `URI'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/faraday-0.15.0/lib/faraday/connection.rb:315:in `url_prefix='
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/faraday-0.15.0/lib/faraday/connection.rb:80:in `initialize'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/faraday-0.15.0/lib/faraday.rb:70:in `new'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/faraday-0.15.0/lib/faraday.rb:70:in `new'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/feedjira-2.1.4/lib/feedjira/feed.rb:82:in `connection'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/feedjira-2.1.4/lib/feedjira/feed.rb:68:in `fetch_and_parse'
from (irb):144
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/console.rb:65:in `start'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/console_helper.rb:9:in `start'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/commands_tasks.rb:78:in `console'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/railties-5.0.7/lib/rails/commands.rb:18:in `<top (required)>'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:293:in `require'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:293:in `block in require'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:259:in `load_dependency'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:293:in `require'
from /Users/taylorcooney/code/startupjobstoronto/bin/rails:9:in `<top (required)>'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:287:in `load'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:287:in `block in load'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:259:in `load_dependency'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:287:in `load'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/taylorcooney/.rbenv/versions/2.4.3/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'