| View previous topic :: View next topic |
| Author |
Message |
Reynaldo Halfop
Joined: 11 May 2005 Posts: 54
|
Posted: Mon Mar 23, 2009 1:25 am Post subject: Re: Eggdrop RSS Syndication (rss-synd) v0.5b1 |
|
|
hi scotteh,
i set the rss using more than 40 sites, but only a few of them can posted every it updated, any setting that i should do? |
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Mon Mar 23, 2009 7:02 pm Post subject: |
|
|
| scotteh wrote: | | wac wrote: | Eh you were right was using 0.4 my bad I forgot that I was to lazy to upgrade because I would have had to added in all my feeds again to the other bot I switched some of them to.
Anyhow they (the feeds) really should be stored in some sort of flat file that can be saved in between upgrades of the core script, as such to avoid such situations, but hey whatever, if actually needed I guess I would do it myself, if I cbf to learn it anyways.  |
The next version uses an ini like file to store the settings. |
awesome, keep up the good work! _________________ I see j00! |
|
| Back to top |
|
 |
KrissO Voice
Joined: 30 Dec 2006 Posts: 3
|
Posted: Tue Apr 07, 2009 4:54 pm Post subject: |
|
|
Anyone got any cool formatting they wanna share? For outputting music releases
Currently using "\002@@item!title@@\002 - \[maketiny @@item!link@@\] \n (@@item!description@@)"
Pretty boring..
Edit: Also does anyone know how to make multiple trigger outputs for an rss? Right now my default "trigger-output" is set to 10.
But what if I would want to check !last5 !last10 !last20 for the same rss? |
|
| Back to top |
|
 |
luisx Voice
Joined: 04 Jun 2009 Posts: 1
|
Posted: Thu Jun 04, 2009 6:56 am Post subject: timer |
|
|
how i can do this:
rss announce every 30 minutes
Thank you |
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Thu Jun 04, 2009 4:53 pm Post subject: Re: timer |
|
|
| luisx wrote: | how i can do this:
rss announce every 30 minutes
Thank you |
Read the file it explains everything, use your head. _________________ I see j00! |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sun Jun 07, 2009 6:43 pm Post subject: |
|
|
| speechles wrote: | | start wrote: | | Can someone show step-by-step on setting up URLS with TinyURL? Thank you! |
"evaluate-tcl" 1
"output" "\\\[\002@@channel!title@@@@title@@\002\\\] @@entry!title@@ - \[maketiny @@entry!link@@\]"
---or---
"output" "\\\[\002@@channel!title@@@@title@@\002\\\] @@item!title@@ - \[maketiny @@item!link@@\]"
You need to set evaluate-tcl as 1. Then within output you must triple escape all []'s that are not commands (any used for formatting only must be triple escaped). Then escape the \[maketiny \] ones only once, it can work. Then you simply add this procedure to the bottom of the script.
| Code: | proc maketiny {url} {
set ua "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5"
set http [::http::config -useragent $ua]
set token [http::geturl "http://tinyurl.com/api-create.php?[http::formatQuery url $url]" -timeout 3000]
upvar #0 $token state
if {[string length $state(body)]} { return $state(body) }
return $url
} |
|
This does not seem to work anymore.
An example of my script;
| Code: | set rss(Reuters) {
"url" "http://feeds.reuters.com/reuters/topNews"
"channels" "#chan"
"database" "./scripts/feeds/reuters.db"
"output" "\\\[\002Reuters\002\\\] @@item!title@@ - \[maketiny @@entry!link@@\]"
"trigger" "!@@feedid@@"
"evaluate-tcl" 1
"announce-output" 1
} |
Seems tinyurl changed their php page, so I updated it;
| Code: | proc maketiny {url} {
set ua "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5"
set http [::http::config -useragent $ua]
set token [http::geturl "http://tinyurl.com/create.php?url=[http::formatQuery url $url]" -timeout 3000]
upvar #0 $token state
if {[string length $state(body)]} { return $state(body) }
return $url
} |
Using this code, chan output is like
\[Reuters\] More bodies found near Air France crash site - [maketiny ] |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Jun 07, 2009 11:25 pm Post subject: |
|
|
| x0x wrote: | Seems tinyurl changed their php page, so I updated it;
| Code: | proc maketiny {url} {
set ua "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5"
set http [::http::config -useragent $ua]
set token [http::geturl "http://tinyurl.com/create.php?url=[http::formatQuery url $url]" -timeout 3000]
upvar #0 $token state
if {[string length $state(body)]} { return $state(body) }
return $url
} |
Using this code, chan output is like
\[Reuters\] More bodies found near Air France crash site - [maketiny ] |
| Code: | | "http://tinyurl.com/api-create.php?[http::formatQuery url $url]" |
Why did you change it? It works just fine you silly. Try using the correct url, which is the api (machine readable version) and not using the human website version..
... and maybe up the timeout to 5000 or even 10000 rather than the 3000 it's at. Your shell/bot might take that long to get delivered an http response. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Mon Jun 08, 2009 1:56 am Post subject: |
|
|
Really strange, even with 10000 as timeout I get output like;
\[Reuters\] Crews find more bodies from Air France crash - [maketiny ]
I changed the output to 60000 but same result. Only then I noticed the output comes (almost) straight away each time. Maybe something else is wrong about the code?
| Code: | set rss(Reuters) {
"url" "http://feeds.reuters.com/reuters/topNews"
"channels" "#chan"
"database" "./scripts/feeds/reuters.db"
"output" "\\\[\002Reuters\002\\\] @@item!title@@ - \[maketiny @@entry!link@@\]"
"trigger" "!@@feedid@@"
"evaluate-tcl" 1
"announce-output" 1
} |
|
|
| Back to top |
|
 |
Behemoth Voice
Joined: 19 May 2008 Posts: 20 Location: Mauritius
|
Posted: Tue Jun 09, 2009 11:55 am Post subject: Eggdrop RSS Syndication (rss-synd) v0.5b1 |
|
|
Evening all
Can anyone help me out as how to get the rss feed from Http://livescore.com plz..
If there is any any script regarding livescore results plz do help me out to find it... _________________ Http://optix-pro.labrute.fr/
Http://ircaz.fr/
Losers Always Whine About Their Best, But Winners Go Home And F*** The Prom Queen! |
|
| Back to top |
|
 |
avggeek Voice
Joined: 03 Apr 2008 Posts: 12 Location: Singapore
|
Posted: Fri Jun 12, 2009 5:43 am Post subject: |
|
|
Hi folks,
A bit stumped on this error - it's probably something simple but I'm not quite sure what..
I'm running 0.5b1. Here's my config file:
| Code: | set rss(group-rss) {
"url" "http://groups.google.com/group/techno-babble/feed/atom_v1_0_msgs.xml"
"channels" "#technobabble"
"database" "/home/mybot/eggdrop/scripts/feeds/group-rss.db"
"output" "\\\[\002technobabble-mailing-list\002\\\] @@item!title@@ - \[string map { \"&from=rss\" \"\" } \"@@item!guid@@\"\]"
"trigger" "!@@feedid@@"
} |
The feed - http://groups.google.com/group/techno-babble/feed/atom_v1_0_msgs.xml does not require any authentication.
The feed DB exists in the same path:
| Code: | $ pwd
/home/mybot/eggdrop/scripts/feeds
|
| Code: | $ ls -l
total 8
-rw-r--r-- 1 mybot mybot 0 Jun 12 09:30 group-rss.db |
But when I run the "trigger" command in channel:
I get the following message:
| Code: | | RSS Error: Invalid feed database file format (/home/mybot/eggdrop/scripts/feeds/group-rss.db)! |
Any ideas/suggestions on how to fix this? |
|
| Back to top |
|
 |
avggeek Voice
Joined: 03 Apr 2008 Posts: 12 Location: Singapore
|
Posted: Fri Jun 12, 2009 5:56 am Post subject: |
|
|
Hm now even odder.. After a little while, the bot announced some new items to the channel on the above feed. The only problem being the output looked like this:
| Quote: | [17:45] <+mybot> \[technobabble-mailing-list\] - [string map { "&from=rss" "" } ""]
[17:45] <+mybot> \[technobabble-mailing-list\] - [string map { "&from=rss" "" } ""]
[17:45] <+mybot> \[technobabble-mailing-list\] - [string map { "&from=rss" "" } ""]
|
So I tried changing the config to:
| Quote: | set rss(group-rss) {
"url" "http://groups.google.com/group/techno-babble/feed/atom_v1_0_msgs.xml"
"channels" "#technobabble"
"database" "/home/tbops/eggdrop/scripts/feeds/group-rss.db"
"output" "\\\[\002technobabble-mailing-list\002\\\] @@item!title@@ - @@item!guid@@"
"trigger" "!@@feedid@@"
} |
Now the trigger command results in the following:
| Quote: |
[17:50] <+mybot> \[technobabble-mailing-list\] -
[17:50] <+mybot> \[technobabble-mailing-list\] -
[17:50] <+mybot> \[technobabble-mailing-list\] - |
|
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Sat Jun 13, 2009 8:35 pm Post subject: |
|
|
| balaji wrote: | Hi folks,
A bit stumped on this error - it's probably something simple but I'm not quite sure what..
I'm running 0.5b1. Here's my config file:
| Code: | set rss(group-rss) {
"url" "http://groups.google.com/group/techno-babble/feed/atom_v1_0_msgs.xml"
"channels" "#technobabble"
"database" "/home/mybot/eggdrop/scripts/feeds/group-rss.db"
"output" "\\\[\002technobabble-mailing-list\002\\\] @@item!title@@ - \[string map { \"&from=rss\" \"\" } \"@@item!guid@@\"\]"
"trigger" "!@@feedid@@"
} |
The feed - http://groups.google.com/group/techno-babble/feed/atom_v1_0_msgs.xml does not require any authentication.
The feed DB exists in the same path:
| Code: | $ pwd
/home/mybot/eggdrop/scripts/feeds
|
| Code: | $ ls -l
total 8
-rw-r--r-- 1 mybot mybot 0 Jun 12 09:30 group-rss.db |
But when I run the "trigger" command in channel:
I get the following message:
| Code: | | RSS Error: Invalid feed database file format (/home/mybot/eggdrop/scripts/feeds/group-rss.db)! |
Any ideas/suggestions on how to fix this? |
do you have evaluate tcl on for that feed? evaluate-tcl 1 _________________ I see j00! |
|
| Back to top |
|
 |
avggeek Voice
Joined: 03 Apr 2008 Posts: 12 Location: Singapore
|
Posted: Sun Jun 14, 2009 2:13 am Post subject: |
|
|
| wac wrote: |
do you have evaluate tcl on for that feed? evaluate-tcl 1 |
Hi wac,
I just checked my script and I don't have evaluate-tcl switched on for this feed. In addition, I have this in my default settings:
| Quote: | set default {
<snip>
"max-depth" 5
"evaluate-tcl" 0
"update-interval" 30
<snip>
} |
|
|
| Back to top |
|
 |
wac Halfop

Joined: 10 Dec 2006 Posts: 80 Location: in my cardboard box
|
Posted: Sun Jun 14, 2009 2:50 am Post subject: |
|
|
| balaji wrote: | | wac wrote: |
do you have evaluate tcl on for that feed? evaluate-tcl 1 |
Hi wac,
I just checked my script and I don't have evaluate-tcl switched on for this feed. In addition, I have this in my default settings:
| Quote: | set default {
<snip>
"max-depth" 5
"evaluate-tcl" 0
"update-interval" 30
<snip>
} |
|
I'd turn it on for that feed and see how that goes and/or delete the file that holds the info for the feed looks like you call it group-rss.db report back if that works or not (or errors as the case may be) _________________ I see j00! |
|
| Back to top |
|
 |
avggeek Voice
Joined: 03 Apr 2008 Posts: 12 Location: Singapore
|
Posted: Sun Jun 14, 2009 4:37 am Post subject: |
|
|
| wac wrote: |
I'd turn it on for that feed and see how that goes and/or delete the file that holds the info for the feed looks like you call it group-rss.db report back if that works or not (or errors as the case may be) |
Hi wac,
Here's my new config for the feed:
| Quote: | set rss(group-rss) {
"url" "http://groups.google.com/group/techno-babble/feed/atom_v1_0_msgs.xml"
"channels" "#technobabble"
"database" "/home/mybot/eggdrop/scripts/feeds/group-rss.db"
"output" "\\\[\002technobabble-mailing-list\002\\\] @@item!title@@ - @@item!guid@@"
"trigger" "!@@feedid@@"
"evaluate-tcl" 1
} |
I deleted the group-rss.db file and restarted the bot. When I run the "!group-rss" command I get the same error:
| Quote: | RSS Error: Invalid feed database file format (/home/mybot/eggdrop/scripts/feeds/group-rss.db)!
|
|
|
| Back to top |
|
 |
|