This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Eggdrop RSS Syndication (rss-synd) v0.5b1

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

rogerw wrote:Thanks for your help.
================================================================================
INSTALL
================================================================================

1. Copy rss-synd.tcl and rss-synd-settings.tcl to your scripts directory.
2. Add "source scripts/rss-synd.tcl" to your eggdrop.conf file.
Are you doing it this way? You aren't sourcing both rss-synd and it's settings are you?!
r
rogerw
Voice
Posts: 3
Joined: Fri Nov 30, 2012 12:35 am

Post by rogerw »

I checked that, and it's as it should be as per the instructions. I think I might have found the problem.

For some reason there were two instances of rss-synd-settings.tcl (yes, same file name for both) uploaded to the shell. One is the generic version and the other is the one I added my RSS links to.

I removed the generic and immediately the bot started posting this to the channel:
[$cookie_val(1)] $cookie_val(3) - $cookie_val(5)
I rehashed the bot and it seems to be working fine now as it posts the RSS feeds to the channel.

Weird.

Anyway, thanks for your help.
Roger
n
neocharles
Voice
Posts: 34
Joined: Tue Apr 23, 2013 4:29 pm

Post by neocharles »

With tcl 8.6, it appears that the script is not working at all. I found this online:
https://github.com/hm2k/rss-synd/issues/9

I see that there is a different version of tcl available http://sourceforge.net/projects/tcl/files/Tcl/8.6b3/ but I am unsure if I should install that one, or if there is a patch for rss-synd...

Code: Select all

RSS Error: Unable to decompress "http://url.to.rss.feed/": Trf package not found.
n
neocharles
Voice
Posts: 34
Joined: Tue Apr 23, 2013 4:29 pm

Post by neocharles »

Too long to edit that post...

Followed the steps here http://forum.egghelp.org/viewtopic.php? ... &start=353

and updated the output for reddit to

Code: Select all

"output"   "\\\[\002/r/\[lindex \[split @@item!link@@ /\] 4\]\002\\\]  @@item!title@@ - \[if \{\[string length \[set a \[lindex \[split \[lindex \[regexp -inline {(http://(?:i.imgur|imgur|www.imgur).*?$)} \"@@item!description@@\"\] 0\] \\\"\] 0\]\]\]\} \{set a\} else \{set a \[reddit @@item!link@@\]\}\]"
n
neocharles
Voice
Posts: 34
Joined: Tue Apr 23, 2013 4:29 pm

Post by neocharles »

Is it possible to have multiple triggers?

eg: Instead of just !engadget, you could have !engadget and !technews both pull from the same db file?
n
neocharles
Voice
Posts: 34
Joined: Tue Apr 23, 2013 4:29 pm

Post by neocharles »

Is there a limit to the number of feeds it can work through? I have added a few that just don't seem to update anymore...
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

I get some irritating weird characters when a word has ' (for example the word victim's)
victimâ@Ys
EDIT: My bot is utf8 patched
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
u
user18765
Voice
Posts: 9
Joined: Sun Apr 15, 2012 6:14 am

RSS-Synd Plugin - Request for Improvement

Post by user18765 »

Hi. I'd like to tell you about some features that I'd like to have on the program, and also report a little problem that's driving me mad. It Happens whenever I enable gzip compression.

eggdrop vers. ===> 1.6.21 (installed from AUR)
TCL version ===> 8.5.13 (installed from AUR)
tcl-TRF vers. ===> tcltrf 2.1.4 (installed from AUR)

PROBLEM:

Code: Select all

[03:02:01] RSS HTTP Error: http://etc.etc.etc.feedlink.rss (State: {invalid command name "zlib"} {invalid command name "zlib"
    while executing
"zlib inflate [string range $data $pos end-8]"
    (procedure "Gunzip" line 42)
    invoked from within
"Gunzip $state(body)"} NONE)
I think this actually means there's no zlib in my system (arch-linux).
BUT that's NOT the case. I actually have zlib installed - from repositories. Then I thought that, perhaps, the TCL-zlib could be another different thing than the 'zlib' itself. So I tried to install 'tcllib', that contains a zlib library, but nothing changed, no success.
Then I thought: «well that's strange, I also have TCL-TRF that is actually working great and being used by other scripts, and...usually it is used as an alternative to zlib for compression tasks, so: why isn't the program trying to use it instead of stopping with zlib errors?»

I ended up talking with an expert TCL guy... he told me that he couldn't help me much without having access to a more detailed log, and, considering that eggdrop is well-known for its log-suppression policies, I should have ran the script from the shell to get such information. Thing that I cannot to do, because I would need to emulate an eggdrop request to the script, knowing almost nothing about tcl.

ADD: I found out that the package "zlib" is not present in tcl versions < 8.6
This means that there are 2 possible solutions: install tcl8.6 which has zlib integrated, or separately compile and install zlib. I tried both. 1)With tcl8.6 I had a NEW error about "Invalid Block Lenght" or something like that. 2)Separately compiling and installing zlib keeping my actual tcl version gives a NEW error, too. Here it is:

Code: Select all

RSS HTTP Error: http://feeds.etcetcetcetc (State: {invalid data: checksum mismatch -1794500591 != 3910586362} {invalid data: checksum mismatch -1794500591 != 3910586362
    while executing
"Gunzip $state(body)"} NONE)
So.. my help request is all about these last things: XOR how to get a more detailed log, XOR how to fix the problem if you already know how.

Then we come to the proposals: :D :D
________________________________________________________________

1 - It would be nice to group some feeds with a 2nd trigger (or why not, Nth trigger).
I try to explain why: When a guy comes to the channel and wants to know the news from MORE than one source, it would be nice if a "father-trigger" such as !news could call every feed that is in a preselected group. Instead of the user individually calling every feed with its own trigger.

2 - I like to keep my channel clean. For this reason I set the "announce-output" option to '1'. That works great for the feeds that are updated often and with individual entries. But that's not the case for MANY feeds, which, for example, get updated at a precise time of the day, with a whole bunch of entries (20~ on average): in these cases, my channel loses the 90% of the feeds on the automatic-output. What I am trying to propose is a new feature to regulate the whole output the way OWNER wants. This means adding 2 options (the 2nd consequent to the other - has no meaning without the 1st being enabled): the first is **avoid leaving anything not posted automatically** : The second is **Choose the time-interval you want to leave between every single auto-posting for the feeds that haven't been posted yet**. I hope my point is clear enough.

If you managed to read until this point, I must absolutely thank you for your attention :D
I wish all you guys a happy new year!

Byee ;)
P
PR0r
Voice
Posts: 8
Joined: Wed Oct 29, 2014 7:09 am

tinyurl

Post by PR0r »

Anyone here using tinyurl or similar shortlinks able to get google rss links displaying in full?

Code: Select all

set rss(news) {
		"url"			"http://news.google.com/?output=rss"
		"channels"		"#cloud9"
		"database"		"./scripts/feeds/gnews-rss.db"
		"output"      		"\\\[\002feed\002\\\] @@item!title@@ - \[tinyurl @@item!link@@\]"

Code: Select all

proc ::rss-synd::tinyurl {url} {
  set tinyurl "http://tinyurl.com/api-create.php";
  set query [::http::formatQuery "url" $url];  
  set token [::http::geturl "$tinyurl?$query" -timeout 5000]; 
  set url [::http::data $token]; 
  ::http::cleanup $token; 
  return $url; 
}
When clicking on the tiny URL link, all google news links return this:
The tinyurl link should be:
Anyone have any ideas?
r
rakmeister
Voice
Posts: 2
Joined: Tue Jun 02, 2015 3:20 pm
Location: Netherlands
Contact:

https errors

Post by rakmeister »

im having problems with https links
likewise if site(https) is behind cloudflare

(State: error)

and before i had this error (seems to be related to cloudflare and tls

{POSIX ECONNABORTED {software caused connection abort}

http://logs.sylnt.us/%23github/2014-10-19.html
Oct 19, 2014 - {POSIX ECONNABORTED {software caused connection abort} ... is the problem child :/ Yah - it is eggdrop so the rss-synd stuff is TCL script
this part with # i also tried and no luck..

::http::register https 443 ::tls::socket
vs
# ::http::register https 443 [list ::tls::socket -require 1 -cafile ./server.pem
# ::http::register https 443 [list ::tls::socket -tls1 1]
quick edit
actually i switched again to the ^^ last one and now a couple https do work. rest still not.

SSL channel "sock10": error: tlsv1 alert internal error
switched back to orig htpp:: gives
SSL channel "sock10": error: sslv3 alert handshake failure


http://forum.egghelp.org/viewtopic.php? ... hlight=tls
c
creasy
Voice
Posts: 24
Joined: Sat Mar 05, 2016 4:21 am

Post by creasy »

Is it possible to add a trigger flood check to the script?
l
littledaga
Voice
Posts: 6
Joined: Sun May 12, 2013 10:55 am
Location: Amsterdam

Post by littledaga »

When i try to get a https feed i get this error message when i load the bot:

RSS Error: Unable to find tls package required for https, unloaded feed "log".

I already tried to install a tls package with no luck, possibly I'm not putting it in the right place in Windrop, can someone advise?


Edit:

So I managed to install tls 1.6 and http 2.7.5.

now I get a (State: Error) from rss-synd

When I do a trigger on one of the feeds I get old data, so nothing new is coming through

RSS Feed i'm tying to grab data from - https://predb.me/?cats=games-playstation&rss=1

Any advice?
c
creasy
Voice
Posts: 24
Joined: Sat Mar 05, 2016 4:21 am

Post by creasy »

littledaga wrote:Any advice?
Try changing the line saying

Code: Select all

::http::register https 443 ::tls::socket
to

Code: Select all

::http::register https 443 [list ::tls::socket -request 1 -require 0 -ssl3 1 -tls1 1]
l
littledaga
Voice
Posts: 6
Joined: Sun May 12, 2013 10:55 am
Location: Amsterdam

Post by littledaga »

Hi creasy, changing that didn't help.

.tcl package require tls
Tcl: 1.6
.tcl package require http
Tcl: 2.7.7

[09:53:01] RSS HTTP Error: http://predb.me/?cats=games-playstation&rss=1 (HTTP/1.1 403 Forbidden)


Any Ideas?
l
littledaga
Voice
Posts: 6
Joined: Sun May 12, 2013 10:55 am
Location: Amsterdam

Post by littledaga »

littledaga wrote:Hi creasy, changing that didn't help.

.tcl package require tls
Tcl: 1.6
.tcl package require http
Tcl: 2.7.7

[09:53:01] RSS HTTP Error: http://predb.me/?cats=games-playstation&rss=1 (HTTP/1.1 403 Forbidden)


Any Ideas?
Hi

I haven't worked out why I still get (HTTP/1.1 403 Forbidden). I'm getting it with the below feed aswel. Any help would be appreciated.

http://www.scnsrc.me/category/films/feed/
Post Reply