View previous topic :: View next topic |
Author |
Message |
shadrach Halfop
Joined: 14 Dec 2007 Posts: 74
|
Posted: Mon Dec 29, 2008 2:47 pm Post subject: |
|
|
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 |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Mon Dec 29, 2008 4:00 pm Post subject: |
|
|
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 |
|
 |
shadrach Halfop
Joined: 14 Dec 2007 Posts: 74
|
Posted: Mon Dec 29, 2008 4:56 pm Post subject: |
|
|
works fine now ty. |
|
Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Thu May 28, 2009 1:40 pm Post subject: |
|
|
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 |
|
 |
jager Voice
Joined: 15 Sep 2007 Posts: 2
|
Posted: Fri May 29, 2009 1:25 am Post subject: ad fix |
|
|
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 |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Fri May 29, 2009 1:44 am Post subject: Re: ad fix |
|
|
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.
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 |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Fri May 29, 2009 7:23 am Post subject: |
|
|
Thanks guys,  |
|
Back to top |
|
 |
sk-4 Halfop
Joined: 06 Oct 2007 Posts: 51
|
Posted: Fri May 29, 2009 1:26 pm Post subject: |
|
|
im still getting the error
[01:24] <@sk-4> !rat
[01:24] <@bott> Error while attempting to fetch the horoscope. |
|
Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Fri May 29, 2009 2:01 pm Post subject: |
|
|
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 |
|
 |
evildude Voice
Joined: 03 Feb 2004 Posts: 24
|
Posted: Sat May 30, 2009 4:04 pm Post subject: |
|
|
or maybe this?
regexp {<p style="margin-bottom: 20px;">(.*?)</p>} $html - output(horoscope) |
|
Back to top |
|
 |
Voldemort Voice
Joined: 04 Sep 2009 Posts: 1
|
Posted: Fri Sep 04, 2009 3:12 pm Post subject: indonesia horoskop |
|
|
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 |
|
 |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Fri Dec 11, 2009 6:47 am Post subject: |
|
|
Can someone fix this? The script is broken as of December 11, 2009.
Thanks!  |
|
Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Fri Dec 11, 2009 7:16 pm Post subject: |
|
|
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 |
|
 |
sk-4 Halfop
Joined: 06 Oct 2007 Posts: 51
|
Posted: Sat Dec 12, 2009 11:34 am Post subject: |
|
|
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 |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
|
Back to top |
|
 |
|