I use the RSS library so that I can parse Atom and RSS in Ruby and Rails and store them in a model. I looked through the standard RSS library, but is there one library that will automatically detect that there is a new rss feed so that I can update my database?
What is the best practice to run instructions to store a new RSS feed? Should I use threads to solve this problem? Will it be slow? thank you for your help
OK makes a deal.
, Feedzirra. . http://github.com/pauldix/feedzirra
Autodiscovery?
- -, GET. http://github.com/pauldix/truffle-hog
-Theres feedbag, GET, URL-. , . http://github.com/damog/feedbag
Feedzirra - , . , pubsubhubbub. , pubsubhubbub. . pubsubhubbub.appspot.com - -, pubsub, , . , , , . POST . , 95% pubsub. .:)
, etag , . . Feedzirra .
, " " ?
, , - ? , , ?
, , , - . google " rss-" , , . , . URL-, RSS/Atom . - , (RDF, RSS Atom), , , .
, , , , , , , . . , , . , , .
, crontab Linux Unix- , , .
?
-
When you populate your model with RSS feed data, use Model.create (...) instead Model.find_or_create_by_column(value, :other_column => other_value).
Model.find_or_create_by_column(value, :other_column => other_value)
You can specify the date as a unique value or the title of the RSS message ... (whatever you wish)
I think this is pretty easy. For example, you can perform some cron task to populate your model once per hour. Only new channels will be added.
It is not possible to receive any βeventβ when RSS is being updated without loading the entire RSS feed again.
Source: https://habr.com/ru/post/1741635/More articles:Good data on data refactoring structures - data-structuresSQLAlchemy custom sorting algorithms using SQL indexes - pythonWhen / why does Internet Explorer block the installation of an (signed) ActiveX control? - internet-explorerhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1741633/how-to-define-a-structural-type-that-refers-to-itself&usg=ALkJrhhdywugCnvlauHBEye32IZMC5Iixgimage filters for iphone sdk development - iphonecan the scanner be fully written in javascript? - javascriptIs there an Open XML parser for C ++? - c ++What is the best way to integrate x32 lib with an x64 process (without converting lib to x64)? - windowsHibernate proxy serialization and client-side retrieval - javaLazyInitializationException when added to a list that is stored in an entity class using sleep mode and gilead for gwt - javaAll Articles