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 ... 11, 12, 13 ... 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
speechles
Revered One


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

PostPosted: Sat Feb 14, 2009 10:01 am    Post subject: Reply with quote

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
}

_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
vBm
Voice


Joined: 20 Dec 2008
Posts: 6

PostPosted: Tue Feb 24, 2009 5:40 pm    Post subject: Reply with quote

Is it possible to 'save' last retrieved data from rss and then after new check ( after defined check time has passed ) to compare it with last chunks ... so if it matches not to display 'em ?

(hope i was clear enough with what i'm trying to 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: Tue Feb 24, 2009 6:13 pm    Post subject: Reply with quote

You want it not to display old data repeatedly is that what you're saying, because if so that would be awesome, I'd like such a feature as it happens quite frequently sometimes :/
_________________
I see j00!
Back to top
View user's profile Send private message
vBm
Voice


Joined: 20 Dec 2008
Posts: 6

PostPosted: Tue Feb 24, 2009 7:08 pm    Post subject: Reply with quote

wac wrote:
You want it not to display old data repeatedly is that what you're saying, because if so that would be awesome, I'd like such a feature as it happens quite frequently sometimes :/


exactly wac ... i want not to show old data Smile
Back to top
View user's profile Send private message
eggysoldier
Voice


Joined: 25 Feb 2009
Posts: 7

PostPosted: Wed Feb 25, 2009 11:37 am    Post subject: Reply with quote

Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:

Code:
[16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.


Confused
Any ideas what's wrong? Does it not make those files automatically?
Back to top
View user's profile Send private message
wac
Halfop


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

PostPosted: Wed Feb 25, 2009 6:51 pm    Post subject: Reply with quote

eggysoldier wrote:
Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:

Code:
[16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.


Confused
Any ideas what's wrong? Does it not make those files automatically?


It does, if you would have waited it would have happened automagically... *sigh*
_________________
I see j00!
Back to top
View user's profile Send private message
eggysoldier
Voice


Joined: 25 Feb 2009
Posts: 7

PostPosted: Wed Feb 25, 2009 10:13 pm    Post subject: Reply with quote

wac wrote:
eggysoldier wrote:
Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:

Code:
[16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.


Confused
Any ideas what's wrong? Does it not make those files automatically?


It does, if you would have waited it would have happened automagically... *sigh*

Well I have been waiting all night now, and am still getting these errors.
Any suggestions? Many thanks for the reply Smile
Back to top
View user's profile Send private message
wac
Halfop


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

PostPosted: Wed Feb 25, 2009 11:16 pm    Post subject: Reply with quote

eggysoldier wrote:
wac wrote:
eggysoldier wrote:
Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:

Code:
[16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.


Confused
Any ideas what's wrong? Does it not make those files automatically?


It does, if you would have waited it would have happened automagically... *sigh*

Well I have been waiting all night now, and am still getting these errors.
Any suggestions? Many thanks for the reply Smile


For [censored] sake dude, did you make a feeds directory within the scripts directory? If so which I doubt try to make the path different such as replacing the dot with ~/eggdrop or whatever the name of your folder is... also don't forget to .rehash or .restart
_________________
I see j00!
Back to top
View user's profile Send private message
eggysoldier
Voice


Joined: 25 Feb 2009
Posts: 7

PostPosted: Thu Feb 26, 2009 6:41 pm    Post subject: Reply with quote

wac wrote:
eggysoldier wrote:
wac wrote:
eggysoldier wrote:
Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:

Code:
[16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.


Confused
Any ideas what's wrong? Does it not make those files automatically?


It does, if you would have waited it would have happened automagically... *sigh*

Well I have been waiting all night now, and am still getting these errors.
Any suggestions? Many thanks for the reply Smile


For [censored] sake dude, did you make a feeds directory within the scripts directory? If so which I doubt try to make the path different such as replacing the dot with ~/eggdrop or whatever the name of your folder is... also don't forget to .rehash or .restart

Thank you, that worked like a charm!
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 Feb 26, 2009 6:46 pm    Post subject: Reply with quote

eggysoldier wrote:
wac wrote:
eggysoldier wrote:
wac wrote:
eggysoldier wrote:
Hi,
I was testing out this script and left the default feed/db in place to try it out and get this:

Code:
[16:29] RSS Warning: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.
[16:29] RSS Database Error: couldn't open "./scripts/feeds/slashdot.db": no such file or directory.


Confused
Any ideas what's wrong? Does it not make those files automatically?


It does, if you would have waited it would have happened automagically... *sigh*

Well I have been waiting all night now, and am still getting these errors.
Any suggestions? Many thanks for the reply Smile


For [censored] sake dude, did you make a feeds directory within the scripts directory? If so which I doubt try to make the path different such as replacing the dot with ~/eggdrop or whatever the name of your folder is... also don't forget to .rehash or .restart

Thank you, that worked like a charm!


yeah np
_________________
I see j00!
Back to top
View user's profile Send private message
prg0906
Voice


Joined: 22 Mar 2007
Posts: 12

PostPosted: Tue Mar 10, 2009 8:45 pm    Post subject: Reply with quote

First of all, awesome script! I have ten feeds running flawlessly. However, I did notice a couple of bugs:

Code:
Line 360: [namespace current]::feed_msg $list_type $list_msgs list_targets $nick


The latest source (version 0.5b1) is missing a $ before list_targets, which causes the !rss command to return nothing. Then, once that error is fixed, when !rss is sent via /msg it returns the name of each feed twice. I don't know the source of that bug, yet.
Back to top
View user's profile Send private message
prg0906
Voice


Joined: 22 Mar 2007
Posts: 12

PostPosted: Tue Mar 10, 2009 11:09 pm    Post subject: Reply with quote

How do I display a link other than the default using the @@entry!link@@ format? Specifically, I want to match by rel="" attribute. I tried all of the usual suspects, but nothing has worked. Crying or Very sad
Back to top
View user's profile Send private message
wac
Halfop


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

PostPosted: Fri Mar 13, 2009 5:44 am    Post subject: Reply with quote

prg0906 wrote:
First of all, awesome script! I have ten feeds running flawlessly. However, I did notice a couple of bugs:

Code:
Line 360: [namespace current]::feed_msg $list_type $list_msgs list_targets $nick


The latest source (version 0.5b1) is missing a $ before list_targets, which causes the !rss command to return nothing. Then, once that error is fixed, when !rss is sent via /msg it returns the name of each feed twice. I don't know the source of that bug, yet.


Not sure what you managed to screw up, but I've had to make no such modification to my script it works just fine, not that I ever have used it, that is until you said something I tried it and it worked just fine. You messed something up there, hence why it doesn't function correctly.
_________________
I see j00!
Back to top
View user's profile Send private message
prg0906
Voice


Joined: 22 Mar 2007
Posts: 12

PostPosted: Sun Mar 15, 2009 10:24 am    Post subject: Reply with quote

wac wrote:
Not sure what you managed to screw up, but I've had to make no such modification to my script it works just fine, not that I ever have used it, that is until you said something I tried it and it worked just fine. You messed something up there, hence why it doesn't function correctly.


Did you verify these assumptions using a fresh copy of the latest version, or simply by verifying that your copy works? The error I included in my post is from a fresh copy of the latest version at: http://labs.wizzer-it.com/projects/rss-synd/rss-synd-0.5b1.zip

So, you're either, using an older copy of the source that doesn't contain the error, or you managed to fix it at some point. Regardless, it exists in the latest version from the source.

//prg
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 16, 2009 10:47 am    Post subject: Reply with quote

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
_________________
I see j00!
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 ... 11, 12, 13 ... 25, 26, 27  Next
Page 12 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