rebelcodebase / sopel-rss Goto Github PK
View Code? Open in Web Editor NEWRSS module for the sopel IRC bot
RSS module for the sopel IRC bot
ERROR:sopel.modules.rss:unable to read url "http://www.aljazeera.com/xml/rss/all.xml" of feed "Al_Jazeera"
ERROR:sopel.modules.rss:unable to read url "http://www.arrl.org/news/rss" of feed "ARRL"
ERROR:sopel.modules.rss:unable to read url "http://hosted.ap.org/lineups/SCIENCEHEADS.rss?SITE=AP&SECTION=HOME" of feed "AP_Science"
ERROR:sopel.modules.rss:unable to read url "http://www.frontpagemag.com/point/rss.xml" of feed "FrontPageMag"
possible to add update interval for feeds example feed 1 updates every minute feed 2 updates only every 30 minutes... That UPDATE_INTERVAL = 60 # seconds in source code is a global value that applies for all feeds or?
Error in rss setup procedure: say() missing 1 required positional argument: 'recipient' (../../../../../.sopel/modules/rss.py:518)
The new commit is now posting a blank line in my SSH window along with the normal posting in my #channel :)
Nice job...
Would like an option for url shortner
I think there's a bug with parsing the config file. Only the first feed loads after I add a second feed and restart the bot. And the bot overwrites the config file on the second stop.
The formats I have set are not being over-riding the default settings.
.rss config formats
fl+fty,fl+ftl
[11:13] [IPO] Yum Picks Financial Partners Primavera And Ant for China Spin-Off → http://seekingalpha.com/article/4004397-yum-picks-financial-partners-primavera-ant-china-spin?source=feed_tag_ipo_analysis
If I manually add to the cfg file it still does not work. I have to set the defaults to fl+fty in the RSS.py to have it work with the url shortner
FWIW... I got the following when adding this feed..
https://feeds.feedburner.com/DiscoveryNews-Top-Stories
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/sopel/bot.py", line 441, in call
exit_code = func(sopel, trigger)
File "/usr/local/lib/python2.7/dist-packages/sopel/module.py", line 343, in guarded
return function(bot, trigger, _args, *_kwargs)
File "/home/znc/.sopel/modules/rss3.py", line 179, in rss
__rss(bot, args)
File "/home/znc/.sopel/modules/rss3.py", line 207, in __rss
globals()[COMMANDS[cmd]['function']](bot, args)
File "/home/znc/.sopel/modules/rss3.py", line 218, in __rssAdd
checkresults = __feedCheck(bot, feedreader, channel, feedname)
File "/home/znc/.sopel/modules/rss3.py", line 551, in __feedCheck
item = feed['entries'][0]
IndexError: list index out of range
Not sure whats causing this on this feed: http://www.cnbc.com/id/100003114/device/rss/rss.html
Sometimes the title is mssing.. example
[CNBC] → http://tinyurl.com/hamzwv9
[CNBC] → http://tinyurl.com/hpg9z4z
Add a default output string with placeholders that can can be substituted with the format fields
I was doing some testing and got this:
I loaded venv for python3
started sopel
I issued .rss in the channel window which returned the following:
Traceback (most recent call last):
File "/home/znc/.sopel-env/lib/python3.4/site-packages/sopel/bot.py", line 441, in call
exit_code = func(sopel, trigger)
File "/home/znc/.sopel-env/lib/python3.4/site-packages/sopel/module.py", line 343, in guarded
return function(bot, trigger, _args, *_kwargs)
File "/home/znc/.sopel/modules/rss3.py", line 178, in rss
args = shlex.split(trigger.group(2))
File "/usr/lib/python3.4/shlex.py", line 276, in split
return list(lex)
File "/usr/lib/python3.4/shlex.py", line 266, in next
token = self.get_token()
File "/usr/lib/python3.4/shlex.py", line 93, in get_token
raw = self.read_token()
File "/usr/lib/python3.4/shlex.py", line 121, in read_token
nextchar = self.instream.read(1)
OSError: [Errno 5] Input/output error
It works ok with python2.7 with the following return:
synopsis: .rss add|del|fields|format|get|help|join|list|update
when I insert it in the destination directory, and restart, it gives me an error in the unloaded form
I'm having a heck of a time trying to config each feedname with diff colors in the .cfg file, Can you give me an example ie fl+f,?tl
have a user set for the number of posting at one time to avoid channel flooding
Sometimes, tinyurl will fail and output a error. If tinyurl returns Error have RSS post the link instead
<+gNews> [Huffington] An Open Letter To The Loudest Person In The Room → Error
It should be possible to style each feed individually. This way one could for example color code feeds in some channels but not in others. The 'format' option of '.rss add' and the 'feeds' value in the config file need to be made to be more generally for this to work. And there needs to be a command '.rss template' similar to '.rss format'.
sopel modules are now designed to be installed under a specific namespace. you can use the sopel template which uses cookiecutter to create a bunch of basic code so that your module is recognized correctly by sopel.
the most important part in there seems to be:
namespace_packages=['sopel_modules'],
in setup.py...
see also sopel-irc/sopel#1128 (comment)
Is it possible to post the same feed to more than one channel?
At the moment I can only add the feed again, and I have to use a different name for it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.