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 

incith:horoscope (r94) (Jan. 20th, 2009)
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
shadrach
Halfop


Joined: 14 Dec 2007
Posts: 70

PostPosted: Mon Dec 29, 2008 2:47 pm    Post subject: Reply with quote

The script isn't recognising signs that begin with 's' ie sagittarius and scorpio. Tis is the message returned:

Invalid sign 'corpio'.

Invalid sign 'agittarius'.

Or is it just me?
Back to top
View user's profile Send private message MSN Messenger
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Mon Dec 29, 2008 4:00 pm    Post subject: Reply with quote

shadrach wrote:
The script isn't recognising signs that begin with 's' ie sagittarius and scorpio. Tis is the message returned:

Invalid sign 'corpio'.

Invalid sign 'agittarius'.

Or is it just me?

Lol. Working on this now.

Fix:
Code:
        regsub -- "\s*${command_char}\s*" $input(query) {} input(query)

Becomes:
Code:
        regsub -- "\\s*${command_char}\\s*" $input(query) {} input(query)


3.1 released.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
shadrach
Halfop


Joined: 14 Dec 2007
Posts: 70

PostPosted: Mon Dec 29, 2008 4:56 pm    Post subject: Reply with quote

works fine now ty.
Back to top
View user's profile Send private message MSN Messenger
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Thu May 28, 2009 1:40 pm    Post subject: Reply with quote

anyone plan to take over the horoscope fixes? incith is taking a break.

Horoscope site made changes so its showing chunks of html

[1:38pm] <cache> !gemini
[1:38pm] <bot> Gemini: <p style="margin-bottom: 20px;">Nothing too serious is going on right now -- in fact, you may decide to put off some important business for later, when you know you will be able to give it the attention it really deserves.</p><p style="margin: 0;"><div class=horbdy><strong>Searching for your life mate?
[1:38pm] <bot> Discover how to invite love into your life. Call 800-648-1983.</strong></div><br /></p>

Thanks
Back to top
View user's profile Send private message
jager
Voice


Joined: 15 Sep 2007
Posts: 2

PostPosted: Fri May 29, 2009 1:25 am    Post subject: ad fix Reply with quote

Simple regexp hack. Find this at line 412:

Code:

regexp {<span id="intelliTxt">(.*?)</span>} $html - output(horoscope)


And change it to:

Code:

regexp {<span id="intelliTxt"><p style="margin-bottom: 20px;">(.*?)</p>} $html - output(horoscope)


Should be just that simple.
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: Fri May 29, 2009 1:44 am    Post subject: Re: ad fix Reply with quote

jager wrote:
Simple regexp hack. Find this at line 412:

Code:

regexp {<span id="intelliTxt">(.*?)</span>} $html - output(horoscope)


And change it to:

Code:

regexp {<span id="intelliTxt"><p style="margin-bottom: 20px;">(.*?)</p>} $html - output(horoscope)


Should be just that simple.

Actually, there is a space in there that will need to be jumped over as shown by using Webby to demonstrate:
Quote:
<sp3echles> !webby http://horoscopes.astrology.com/dailycapricorn.html --regexp <span id="intelliTxt"><p style="margin-bottom: 20px;">(.*?)</p>--
<bot> regexp does not match any html.
<sp3echles> !webby http://horoscopes.astrology.com/dailycapricorn.html --regexp <span id="intelliTxt"> <p style="margin-bottom: 20px;">(.*?)</p>--
<bot> regexp capture1 ( You're not so sure that things are supposed to be going the way they're going -- in particular, you're pretty sure that you're not supposed to be the center of attention. Redirect it to someone more appropriate. )

Webby was tailored for situations just like this. Smile
So the correct line should be:
Code:
regexp {<span id="intelliTxt"> <p style="margin-bottom: 20px;">(.*?)</p>} $html - output(horoscope)

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


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri May 29, 2009 7:23 am    Post subject: Reply with quote

Thanks guys, Very Happy
Back to top
View user's profile Send private message
sk-4
Halfop


Joined: 06 Oct 2007
Posts: 51

PostPosted: Fri May 29, 2009 1:26 pm    Post subject: Reply with quote

im still getting the error

[01:24] <@sk-4> !rat
[01:24] <@bott> Error while attempting to fetch the horoscope.
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri May 29, 2009 2:01 pm    Post subject: Reply with quote

sk-4 wrote:
im still getting the error

[01:24] <@sk-4> !rat
[01:24] <@bott> Error while attempting to fetch the horoscope.


Try this way:

regexp {<span id="intelliTxt"> <p style="margin-bottom: 20px;">(.*?)</p>} $html - horoscope
Back to top
View user's profile Send private message
evildude
Voice


Joined: 03 Feb 2004
Posts: 24

PostPosted: Sat May 30, 2009 4:04 pm    Post subject: Reply with quote

or maybe this?

regexp {<p style="margin-bottom: 20px;">(.*?)</p>} $html - output(horoscope)
Back to top
View user's profile Send private message
Voldemort
Voice


Joined: 04 Sep 2009
Posts: 1

PostPosted: Fri Sep 04, 2009 3:12 pm    Post subject: indonesia horoskop Reply with quote

Very Happy
Can you help me make tcl version indonesia horoscopes? please help, because I was having trouble finding that still linger on the use Indonesian
Back to top
View user's profile Send private message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Fri Dec 11, 2009 6:47 am    Post subject: Reply with quote

Can someone fix this? The script is broken as of December 11, 2009.

Thanks! Very Happy
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri Dec 11, 2009 7:16 pm    Post subject: Reply with quote

Same here, no longer works. Get the error "Something failed while trying to grab the horoscope."

Can anyone please provide a fix?
Back to top
View user's profile Send private message
sk-4
Halfop


Joined: 06 Oct 2007
Posts: 51

PostPosted: Sat Dec 12, 2009 11:34 am    Post subject: Reply with quote

im getting new error in script

Tcl error [incith::horoscope::message_handler]: can't read "output(sign)": no such element in array

and i noticed http://horoscopes.astrology.com/daily no more exisst..
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sat Dec 12, 2009 2:56 pm    Post subject: Reply with quote

Good thing they have RSS feed now so should work a long time if someone can make the script

http://feeds.astrology.com/dailyoverview

and chinese horoscope here http://feeds.astrology.com/dailychinese
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, 4  Next
Page 2 of 4

 
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