This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

incith:horoscope (r94) (Jan. 20th, 2009)

Support & discussion of released scripts, and announcements of new releases.
s
shadrach
Halfop
Posts: 74
Joined: Fri Dec 14, 2007 6:29 pm

Post by shadrach »

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?
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

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: Select all

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

Code: Select all

        regsub -- "\\s*${command_char}\\s*" $input(query) {} input(query)
3.1 released.
s
shadrach
Halfop
Posts: 74
Joined: Fri Dec 14, 2007 6:29 pm

Post by shadrach »

works fine now ty.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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
j
jager
Voice
Posts: 2
Joined: Sat Sep 15, 2007 1:11 am

ad fix

Post by jager »

Simple regexp hack. Find this at line 412:

Code: Select all

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

Code: Select all

regexp {<span id="intelliTxt"><p style="margin-bottom: 20px;">(.*?)</p>} $html - output(horoscope)
Should be just that simple.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Re: ad fix

Post by speechles »

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

Code: Select all

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

Code: Select all

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:
<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. :)
So the correct line should be:

Code: Select all

regexp {<span id="intelliTxt"> <p style="margin-bottom: 20px;">(.*?)</p>} $html - output(horoscope)
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Thanks guys, :D
s
sk-4
Halfop
Posts: 51
Joined: Sat Oct 06, 2007 6:37 am

Post by sk-4 »

im still getting the error

[01:24] <@sk-4> !rat
[01:24] <@bott> Error while attempting to fetch the horoscope.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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
e
evildude
Voice
Posts: 24
Joined: Tue Feb 03, 2004 9:13 pm

Post by evildude »

or maybe this?

regexp {<p style="margin-bottom: 20px;">(.*?)</p>} $html - output(horoscope)
V
Voldemort
Voice
Posts: 1
Joined: Fri Sep 04, 2009 2:37 pm

indonesia horoskop

Post by Voldemort »

:D
Can you help me make tcl version indonesia horoscopes? please help, because I was having trouble finding that still linger on the use Indonesian
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

Post by holycrap »

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

Thanks! :D
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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

Can anyone please provide a fix?
s
sk-4
Halfop
Posts: 51
Joined: Sat Oct 06, 2007 6:37 am

Post by sk-4 »

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..
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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
Post Reply