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 ... 13, 14, 15 ... 25, 26, 27  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Reynaldo
Halfop


Joined: 11 May 2005
Posts: 54

PostPosted: Mon Mar 23, 2009 1:25 am    Post subject: Re: Eggdrop RSS Syndication (rss-synd) v0.5b1 Reply with quote

scotteh wrote:
v0.4 Final has been release, you can find it in the tcl archive http://www.egghelp.org/tcl.htm

v0.5 is still work in progress, there are a few more things i would like to add and some things that really need fixing (ie: decent charset support) before I would consider releasing a final version.

Current Beta v0.5b1: http://forum.egghelp.org/viewtopic.php?p=79369#79369

Complete Archive: http://labs.wizzer-it.com/projects/rss-synd/


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
View user's profile Send private message
wac
Halfop


Joined: 10 Dec 2006
Posts: 80
Location: in my cardboard box

PostPosted: Mon Mar 23, 2009 7:02 pm    Post subject: Reply with quote

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. Very Happy


The next version uses an ini like file to store the settings.


awesome, keep up the good work!
_________________
I see j00!
Back to top
View user's profile Send private message
KrissO
Voice


Joined: 30 Dec 2006
Posts: 3

PostPosted: Tue Apr 07, 2009 4:54 pm    Post subject: Reply with quote

Anyone got any cool formatting they wanna share? For outputting music releases Smile
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
View user's profile Send private message MSN Messenger
luisx
Voice


Joined: 04 Jun 2009
Posts: 1

PostPosted: Thu Jun 04, 2009 6:56 am    Post subject: timer Reply with quote

how i can do this:

rss announce every 30 minutes


Thank you
Back to top
View user's profile Send private message
wac
Halfop


Joined: 10 Dec 2006
Posts: 80
Location: in my cardboard box

PostPosted: Thu Jun 04, 2009 4:53 pm    Post subject: Re: timer Reply with quote

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
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Sun Jun 07, 2009 6:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
speechles
Revered One


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

PostPosted: Sun Jun 07, 2009 11:25 pm    Post subject: Reply with quote

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.. Wink
... 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
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Mon Jun 08, 2009 1:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Behemoth
Voice


Joined: 19 May 2008
Posts: 20
Location: Mauritius

PostPosted: Tue Jun 09, 2009 11:55 am    Post subject: Eggdrop RSS Syndication (rss-synd) v0.5b1 Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
avggeek
Voice


Joined: 03 Apr 2008
Posts: 12
Location: Singapore

PostPosted: Fri Jun 12, 2009 5:43 am    Post subject: Reply with quote

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:

Code:
!group-rss


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
View user's profile Send private message
avggeek
Voice


Joined: 03 Apr 2008
Posts: 12
Location: Singapore

PostPosted: Fri Jun 12, 2009 5:56 am    Post subject: Reply with quote

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
View user's profile Send private message
wac
Halfop


Joined: 10 Dec 2006
Posts: 80
Location: in my cardboard box

PostPosted: Sat Jun 13, 2009 8:35 pm    Post subject: Reply with quote

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:

Code:
!group-rss


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
View user's profile Send private message
avggeek
Voice


Joined: 03 Apr 2008
Posts: 12
Location: Singapore

PostPosted: Sun Jun 14, 2009 2:13 am    Post subject: Reply with quote

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
View user's profile Send private message
wac
Halfop


Joined: 10 Dec 2006
Posts: 80
Location: in my cardboard box

PostPosted: Sun Jun 14, 2009 2:50 am    Post subject: Reply with quote

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
View user's profile Send private message
avggeek
Voice


Joined: 03 Apr 2008
Posts: 12
Location: Singapore

PostPosted: Sun Jun 14, 2009 4:37 am    Post subject: Reply with quote

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
View user's profile Send private message
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 ... 13, 14, 15 ... 25, 26, 27  Next
Page 14 of 27

 
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