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 

UNOFFICIAL incith-google 2.1x (Nov30,2o12)
Goto page Previous  1, 2, 3 ... 41, 42, 43 ... 56, 57, 58  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Sun Aug 01, 2010 5:10 am    Post subject: Reply with quote

pogue wrote:
Currency exchange also is no longer working (ie: !g 1usd to euro)

Really? I've tested it to my bot using the same script and here's the result:
Quote:
<@Koo> !g 1usd to euro
<%Angel>1 US dollar = 0.7660 euros

It worked OK to me. Smile

But I agree, !i is no longer working. Sad
Back to top
View user's profile Send private message
pogue
Voice


Joined: 17 May 2009
Posts: 28

PostPosted: Mon Aug 02, 2010 12:48 am    Post subject: Reply with quote

Koo wrote:
pogue wrote:
Currency exchange also is no longer working (ie: !g 1usd to euro)

Really? I've tested it to my bot using the same script and here's the result:
Quote:
<@Koo> !g 1usd to euro
<%Angel>1 US dollar = 0.7660 euros

It worked OK to me. Smile


I'm getting different outputs.

Quote:
[11:43pm] <~pogue> !g 1usd to euro
[11:43pm] <+BodyBuildingBot> 507,000 results | Exchange Rates Graph (American Dollar, Euro) @ http://www.x-rates.com/d/EUR/USD/graph120.html | XE - The World's Favorite Currency and Foreign Exchange Site @ http://www.xe.com/ | Currency Converter - Yahoo! Finance @ http://finance.yahoo.com/currency-converter/?amt=1&from=eur&to=usd&submit=convert

Debug:
[11:43pm] <BodyBuildingBot> url (200): http://www.google.com/search?q=1usd%20to%20euro&safe=off&lr=lang_en&ie=utf-8 charset: utf-8 encode_string: :: Cookie: PREF=ID=95fce6638b53cb71:TM=1280724191:LM=1280724191:S=R9kIJf4dktb_L0Mx;NID=37=EUlR7CuaB4S9SfDDP-x_gZIH-Xx3hSr_JYHmhfHaAhD8Jzj7q_u9l5JXeV2NNrz0Al8gKeKmNBqqfoBTPPgiItepzUOAw63apnvTuHUklUoyqYqpysQdR5tDUPlxtPuE


Quote:
[11:45pm] <~pogue> !g 1euro to usd
[11:45pm] <+BodyBuildingBot> 3,130 results | Exchange Rates Graph (Euro, American Dollar) @ http://www.x-rates.com/d/USD/EUR/graph120.html | Currency Converter - Yahoo! Finance @ http://finance.yahoo.com/currency-converter/?amt=1&from=eur&to=usd&submit=convert | EURUSD=X: Summary for EUR/USD- Yahoo! Finance @ http://finance.yahoo.com/q?s=eurusd=x

Debug:
[11:45pm] <BodyBuildingBot> url (200): http://www.google.com/search?q=1euro%20to%20usd&safe=off&lr=lang_en&ie=utf-8 charset: utf-8 encode_string: :: Cookie: PREF=ID=7f8b533d26fa99a0:TM=1280724311:LM=1280724311:S=IRDbWWBMJ0zjzRcN;NID=37=hB6vGzwjT3kt8Lu6_qvczcIQ8Ky-hMdFybSPj4hL65NqWeN6Zf4-K3IwDuvgrKrn2e_9HayishNpWXURVJtdhmT9ao4kDHdNSmvBNZlB1VpUmBvKhKDa01xlJc4MQx6r


Same happens when trying to do any currency exchange (pounds, euro, GPB, CAD, etc)
_________________
Helpful Tools:

  • Notepad++: Windows Text Editor with TCL Syntax Highlighting
  • Pastebin TCL: For easy script collaboration
Back to top
View user's profile Send private message Visit poster's website
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Wed Aug 04, 2010 8:32 am    Post subject: Reply with quote

pogue wrote:
I'm getting different outputs.

Quote:
[11:43pm] <~pogue> !g 1usd to euro
[11:43pm] <+BodyBuildingBot> 507,000 results | Exchange Rates Graph (American Dollar, Euro) @ http://www.x-rates.com/d/EUR/USD/graph120.html | XE - The World's Favorite Currency and Foreign Exchange Site @ http://www.xe.com/ | Currency Converter - Yahoo! Finance @ http://finance.yahoo.com/currency-converter/?amt=1&from=eur&to=usd&submit=convert

Debug:
[11:43pm] <BodyBuildingBot> url (200): http://www.google.com/search?q=1usd%20to%20euro&safe=off&lr=lang_en&ie=utf-8 charset: utf-8 encode_string: :: Cookie: PREF=ID=95fce6638b53cb71:TM=1280724191:LM=1280724191:S=R9kIJf4dktb_L0Mx;NID=37=EUlR7CuaB4S9SfDDP-x_gZIH-Xx3hSr_JYHmhfHaAhD8Jzj7q_u9l5JXeV2NNrz0Al8gKeKmNBqqfoBTPPgiItepzUOAw63apnvTuHUklUoyqYqpysQdR5tDUPlxtPuE


Quote:
[11:45pm] <~pogue> !g 1euro to usd
[11:45pm] <+BodyBuildingBot> 3,130 results | Exchange Rates Graph (Euro, American Dollar) @ http://www.x-rates.com/d/USD/EUR/graph120.html | Currency Converter - Yahoo! Finance @ http://finance.yahoo.com/currency-converter/?amt=1&from=eur&to=usd&submit=convert | EURUSD=X: Summary for EUR/USD- Yahoo! Finance @ http://finance.yahoo.com/q?s=eurusd=x

Debug:
[11:45pm] <BodyBuildingBot> url (200): http://www.google.com/search?q=1euro%20to%20usd&safe=off&lr=lang_en&ie=utf-8 charset: utf-8 encode_string: :: Cookie: PREF=ID=7f8b533d26fa99a0:TM=1280724311:LM=1280724311:S=IRDbWWBMJ0zjzRcN;NID=37=hB6vGzwjT3kt8Lu6_qvczcIQ8Ky-hMdFybSPj4hL65NqWeN6Zf4-K3IwDuvgrKrn2e_9HayishNpWXURVJtdhmT9ao4kDHdNSmvBNZlB1VpUmBvKhKDa01xlJc4MQx6r


Same happens when trying to do any currency exchange (pounds, euro, GPB, CAD, etc)

That's odd. Surprised

Looks like we have to wait for the update of the script. Hopefully it would be soon. Razz
Back to top
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Thu Aug 19, 2010 8:07 pm    Post subject: Reply with quote

So yeah, I talked to speechles about the images.google thinggie, and it's very simple to make it work again, untill he makes another release of this wonderful TCL Smile

make the line look like this:

Code:
set query "http://images.google.${country}/images?q=${input}&safe=${incith::google::safe_search}&btnG=Search+Images&ie=utf-8&sout=1"


So all in all, you just have to add this
Code:
&sout=1
to the end of the URL

Thank you speechless for this Smile

!i & !images work now Wink
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
z0rc
Voice


Joined: 13 Oct 2008
Posts: 7

PostPosted: Wed Sep 01, 2010 8:57 am    Post subject: Reply with quote

Google Translate updated their interface once again. !tr parser is broken now.
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: Wed Sep 01, 2010 1:27 pm    Post subject: Reply with quote

At the moment, I'm on very very limited satellite connection. I also, am not at home where I could update the script. I'm at my parents pretty much in the middle of nowhere. Here the fastest dialup is 28.8, hence the satellite connection which puts ridiculous caps on everything. So suffice it to say, when I get back home, the 4th or 5th I plan on updating everything that has broken in my absense.

Until then, I can post from here. Just can't do much else. My pc is on a dedicated broadband connection at home. Once I'm home expect an update shortly afterwards. Wink
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
MellowB
Voice


Joined: 23 Jan 2008
Posts: 24
Location: Germany

PostPosted: Thu Sep 02, 2010 3:26 pm    Post subject: Reply with quote

Yay, finally some good news. :Y
_________________
On the keyboard of life, always keep one finger on the ESC key.
Back to top
View user's profile Send private message Visit poster's website
tmyoungjr
Voice


Joined: 24 Aug 2007
Posts: 14

PostPosted: Thu Sep 02, 2010 4:10 pm    Post subject: Reply with quote

spithash wrote:
So yeah, I talked to speechles about the images.google thinggie, and it's very simple to make it work again, untill he makes another release of this wonderful TCL Smile

make the line look like this:

Code:
set query "http://images.google.${country}/images?q=${input}&safe=${incith::google::safe_search}&btnG=Search+Images&ie=utf-8&sout=1"


So all in all, you just have to add this
Code:
&sout=1
to the end of the URL

Thank you speechless for this Smile

!i & !images work now Wink


This worked thanks! Looking forward to you getting home and the next update speechles!
Back to top
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Tue Sep 14, 2010 7:04 am    Post subject: Reply with quote

no news yet ? Smile
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Wed Sep 15, 2010 3:54 pm    Post subject: Reply with quote

!ebay fails too...

it shows only the number of the results
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Trixar_za
Op


Joined: 18 Nov 2009
Posts: 143
Location: South Africa

PostPosted: Fri Sep 17, 2010 8:56 am    Post subject: Reply with quote

You can fix google translate by changing:
Code:
if {[regexp -- {<textarea name=utrans.*?">(.+?)</textarea} $html - match]} { regsub -all {<.*?>} $match "" match }
to
Code:
if {[regexp -- {<div id=autotrans.*?</object></div>(.+?)</div} $html - match]} { regsub -all {<.*?>} $match "" match }

Yeah, I know, it's not the most elegant regex match ever so maybe somebody can refine it a bit more but otherwise it seems to work for me Wink

EDIT: Ok, I refined the regex match a bit. The above code is as refined as I could make it without breaking it again.
_________________
http://www.trixarian.net/Projects
Back to top
View user's profile Send private message Visit poster's website
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Fri Sep 17, 2010 1:53 pm    Post subject: Reply with quote

good call Trixar Smile
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Sun Sep 19, 2010 3:18 pm    Post subject: Reply with quote

well, it doesn't work well though...

it should work like this:

Code:
[15:11:59] < spithash> !tr amigo
[15:12:35] <@sp33chy> Google: (auto->en) Portuguese to English translation
[15:12:37] <@sp33chy> friend


but this is how it works:

Code:
[15:13:06] <@spithash> !tr amigo
[15:13:08] <@nagger> Google: (auto->en)
[15:13:09] <@nagger> friend

_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Trixar_za
Op


Joined: 18 Nov 2009
Posts: 143
Location: South Africa

PostPosted: Mon Sep 20, 2010 9:58 am    Post subject: Reply with quote

You can easily add the functionality you want by changing:
Code:
if {![regexp -- {</div></div></div></form>(.+?)<img} $html {} detect]} {set detect ""} { regsub -all {<.*?>} $detect "" detect}
to
Code:
if {![regexp -- {<h3 id=headingtext>(.+?)</h3>} $html {} detect]} {set detect ""} { regsub -all {<.*?>} $detect "" detect}


Speechles: I envy you. You have way more patience than I do when having to deal with changing site layouts, people complaints and general support. You do provide the tools for people to fix bug themselves - all they have to do is bother to.
_________________
http://www.trixarian.net/Projects
Back to top
View user's profile Send private message Visit poster's website
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Tue Sep 21, 2010 10:26 am    Post subject: Reply with quote

Trixar_za wrote:
You can easily add the functionality you want by changing:
Code:
if {![regexp -- {</div></div></div></form>(.+?)<img} $html {} detect]} {set detect ""} { regsub -all {<.*?>} $detect "" detect}
to
Code:
if {![regexp -- {<h3 id=headingtext>(.+?)</h3>} $html {} detect]} {set detect ""} { regsub -all {<.*?>} $detect "" detect}



It really works perfect Smile

Thanks Trixar Smile

I'm sure speechles is more than busy lately .. hehe Cool
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
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 ... 41, 42, 43 ... 56, 57, 58  Next
Page 42 of 58

 
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