https://github.com/synacker/rss_items_notifier
Simple ruby gem for notification about new items in rss feed
https://github.com/synacker/rss_items_notifier
Last synced: about 1 year ago
JSON representation
Simple ruby gem for notification about new items in rss feed
- Host: GitHub
- URL: https://github.com/synacker/rss_items_notifier
- Owner: synacker
- Created: 2018-03-21T20:33:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-21T20:41:34.000Z (about 8 years ago)
- Last Synced: 2025-03-19T19:16:40.635Z (about 1 year ago)
- Language: Ruby
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple ruby gem for notification about new items in rss feed.
Use lib:
````Ruby
require 'rss_items_notifier'
listener = RssItemsNotifier::Listener.new rss_url: 'https://lenta.ru/rss/news',
state_file: '/tmp/crc_feeds',
rss_open_properties: { ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE }
loop do
listener.obtain_new_items do |item|
puts item
end
listener.save
sleep 5
end
````
Or run command:
`rss_items_notifier -u https://lenta.ru/rss/news -s /tmp/crc_feeds`