egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Eggdrop RSS Syndication (rss-synd) v0.5b1
Goto page Previous  1, 2, 3 ... , 24, 25, 26  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Wed Jun 05, 2013 2:35 am    Post subject: Reply with quote

rogerw wrote:
Thanks for your help.

Quote:
================================================================================
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?!
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
rogerw
Voice


Joined: 30 Nov 2012
Posts: 3

PostPosted: Wed Jun 05, 2013 12:36 pm    Post subject: Reply with quote

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:
Quote:
[$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
Back to top
View user's profile Send private message
neocharles
Voice


Joined: 23 Apr 2013
Posts: 34

PostPosted: Sun Jul 14, 2013 11:50 am    Post subject: Reply with quote

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:
RSS Error: Unable to decompress "http://url.to.rss.feed/": Trf package not found.
Back to top
View user's profile Send private message
neocharles
Voice


Joined: 23 Apr 2013
Posts: 34

PostPosted: Sun Jul 14, 2013 4:48 pm    Post subject: Reply with quote

Too long to edit that post...

Followed the steps here http://forum.egghelp.org/viewtopic.php?t=11277&postdays=0&postorder=asc&start=353

and updated the output for reddit to

Code:
"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@@\]\}\]"
Back to top
View user's profile Send private message
neocharles
Voice


Joined: 23 Apr 2013
Posts: 34

PostPosted: Sat Jul 27, 2013 10:51 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
neocharles
Voice


Joined: 23 Apr 2013
Posts: 34

PostPosted: Thu Aug 29, 2013 2:46 pm    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 245
Location: DALnet, EFnet & Freenode

PostPosted: Wed Sep 11, 2013 5:12 am    Post subject: Reply with quote

I get some irritating weird characters when a word has ' (for example the word victim's)

Quote:
victimâ@Ys


EDIT: My bot is utf8 patched
_________________
DALnet #CodeMasters - EFnet #eggtcl Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
user18765
Voice


Joined: 15 Apr 2012
Posts: 9

PostPosted: Fri Dec 27, 2013 11:01 pm    Post subject: RSS-Synd Plugin - Request for Improvement Reply with quote

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:
[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:
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: Very Happy Very Happy
________________________________________________________________

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 Very Happy
I wish all you guys a happy new year!

Byee Wink
Back to top
View user's profile Send private message
PR0r
Voice


Joined: 29 Oct 2014
Posts: 8

PostPosted: Wed May 13, 2015 8:07 am    Post subject: tinyurl Reply with quote

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

Code:
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:
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:
Quote:
https://news.google.com/news


The tinyurl link should be:
Quote:
http://news.google.com/news/url?sa=t&fd=R&ct2=us&usg=AFQjCNHZfnX8IlFgpYjbvDxCXPuZkeKeKQ&clid=c3a7d30bb8a4878e06b80cf16b898331&cid=52778838572711&ei=pzxTVZjFENG94ALS1IC4CQ&url=http://www.foxnews.com/us/2015/05/13/amtrak-train-crashes-in-philadelphia-several-people-appear-to-be-injured/


Anyone have any ideas?
Back to top
View user's profile Send private message
rakmeister
Voice


Joined: 02 Jun 2015
Posts: 2
Location: Netherlands

PostPosted: Wed Jun 03, 2015 6:11 pm    Post subject: https errors Reply with quote

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
Quote:
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?t=19986&highlight=tls
Back to top
View user's profile Send private message Visit poster's website
creasy
Voice


Joined: 05 Mar 2016
Posts: 21

PostPosted: Fri Sep 02, 2016 6:17 am    Post subject: Reply with quote

Is it possible to add a trigger flood check to the script?
Back to top
View user's profile Send private message
littledaga
Voice


Joined: 12 May 2013
Posts: 6
Location: Amsterdam

PostPosted: Wed Sep 28, 2016 7:13 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message Yahoo Messenger
creasy
Voice


Joined: 05 Mar 2016
Posts: 21

PostPosted: Thu Sep 29, 2016 2:23 am    Post subject: Reply with quote

littledaga wrote:
Any advice?

Try changing the line saying
Code:
::http::register https 443 ::tls::socket

to
Code:
::http::register https 443 [list ::tls::socket -request 1 -require 0 -ssl3 1 -tls1 1]
Back to top
View user's profile Send private message
littledaga
Voice


Joined: 12 May 2013
Posts: 6
Location: Amsterdam

PostPosted: Thu Sep 29, 2016 4:36 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message Yahoo Messenger
littledaga
Voice


Joined: 12 May 2013
Posts: 6
Location: Amsterdam

PostPosted: Sun Dec 18, 2016 6:09 am    Post subject: Reply with quote

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/
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... , 24, 25, 26  Next
Page 25 of 26

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber