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.
Support & discussion of released scripts, and announcements of new releases.
shadrach
Halfop
Posts: 74 Joined: Fri Dec 14, 2007 6:29 pm
Post
by shadrach » Mon Dec 29, 2008 2:47 pm
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?
incith
Master
Posts: 275 Joined: Sat Apr 23, 2005 2:16 am
Location: Canada
Post
by incith » Mon Dec 29, 2008 4:00 pm
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.
shadrach
Halfop
Posts: 74 Joined: Fri Dec 14, 2007 6:29 pm
Post
by shadrach » Mon Dec 29, 2008 4:56 pm
works fine now ty.
cache
Master
Posts: 306 Joined: Tue Jan 10, 2006 4:59 am
Location: Mass
Post
by cache » Thu May 28, 2009 1:40 pm
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
jager
Voice
Posts: 2 Joined: Sat Sep 15, 2007 1:11 am
Post
by jager » Fri May 29, 2009 1:25 am
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.
speechles
Revered One
Posts: 1398 Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)
Post
by speechles » Fri May 29, 2009 1:44 am
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)
cache
Master
Posts: 306 Joined: Tue Jan 10, 2006 4:59 am
Location: Mass
Post
by cache » Fri May 29, 2009 7:23 am
Thanks guys,
sk-4
Halfop
Posts: 51 Joined: Sat Oct 06, 2007 6:37 am
Post
by sk-4 » Fri May 29, 2009 1:26 pm
im still getting the error
[01:24] <@sk-4> !rat
[01:24] <@bott> Error while attempting to fetch the horoscope.
cache
Master
Posts: 306 Joined: Tue Jan 10, 2006 4:59 am
Location: Mass
Post
by cache » Fri May 29, 2009 2:01 pm
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
evildude
Voice
Posts: 24 Joined: Tue Feb 03, 2004 9:13 pm
Post
by evildude » Sat May 30, 2009 4:04 pm
or maybe this?
regexp {<p style="margin-bottom: 20px;">(.*?)</p>} $html - output(horoscope)
Voldemort
Voice
Posts: 1 Joined: Fri Sep 04, 2009 2:37 pm
Post
by Voldemort » Fri Sep 04, 2009 3:12 pm
Can you help me make tcl version
indonesia horoscopes ? please help, because I was having trouble finding that still linger on the use Indonesian
holycrap
Op
Posts: 152 Joined: Mon Jan 21, 2008 11:19 pm
Post
by holycrap » Fri Dec 11, 2009 6:47 am
Can someone fix this? The script is broken as of December 11, 2009.
Thanks!
cache
Master
Posts: 306 Joined: Tue Jan 10, 2006 4:59 am
Location: Mass
Post
by cache » Fri Dec 11, 2009 7:16 pm
Same here, no longer works. Get the error "Something failed while trying to grab the horoscope."
Can anyone please provide a fix?
sk-4
Halfop
Posts: 51 Joined: Sat Oct 06, 2007 6:37 am
Post
by sk-4 » Sat Dec 12, 2009 11:34 am
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..