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 ... 25, 26, 27 ... 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
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Thu Dec 25, 2008 11:57 am    Post subject: Reply with quote

Well, seems !local isn't returning proper results. Also appears when you !google define:something and that something isn't found, the message saying so is abnormally long with alot of cruft. Also appears that sometimes google did-you-mean isn't picking up. All of these issues have been addressed. The script now functions 100% everything. If you find any issues or behaviors not normal please shout them out here.. Wink

get the new script HERE v1.9.9a. And remember, most important, have a fun and merry christmas everyone.. Laughing

If your drinking today, don't be driving. Dedicate a driver who isn't drinking for your partying.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
KristianF
Voice


Joined: 16 Dec 2007
Posts: 3

PostPosted: Sun Jan 04, 2009 9:08 am    Post subject: Reply with quote

both version 99a and 98z gives me this error:
Code:
Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent


in 95 some functions works, but most wont (like !google or !youtube).

Any idea whats wrong?
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: Sun Jan 04, 2009 12:03 pm    Post subject: Reply with quote

KristianF wrote:
both version 99a and 98z gives me this error:
Code:
Tcl error [incith::google::public_message]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent


in 95 some functions works, but most wont (like !google or !youtube).

Any idea whats wrong?
Code:
# tested on:                                                    #
#   eggdrop v1.6.17 GNU/LINUX with Tcl 8.4                      #
#   windrop v1.6.17 CYGWIN_NT with Tcl 8.4 (http.tcl v2.5)      #


Code:
#   .8k: Corrects some urlencoding problems regarding eggdrops  #
#             complete inability to distinguish between utf-8   #
#             and iso8859-1. Now requires http 2.5 which allows #
#             setting the -urlencoding flag.                    #
#        Corrects entire script which now uses the -urlencoding #
#             flag in some way to hopefully force eggdrop to    #
#             understand the differences and force proper       #
#             detections.                                       #
#         * requirements upped, now requries http 2.5 *         #


If you read down the development entries for each version, the above can be seen. Simply replace the http.tcl in your /eggdrop/lib/tcl8.*/ folder with a copy of http v2.5 or higher. If you read back in this thread others have had this problem and a link to http 2.5 was given.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Sun Jan 04, 2009 12:48 pm    Post subject: Reply with quote

I host http.tcl from 8.4 and 8.5 on my website, I upgrade them if/when I upgrade them on my system.

http://incith.com/eggdrop/
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
KristianF
Voice


Joined: 16 Dec 2007
Posts: 3

PostPosted: Sun Jan 04, 2009 12:53 pm    Post subject: Reply with quote

oh, I must have missed that part. Embarassed

Sorry for that, and thanks for the help.
Back to top
View user's profile Send private message
inz
Voice


Joined: 25 Jan 2009
Posts: 3

PostPosted: Sun Jan 25, 2009 3:03 pm    Post subject: Reply with quote

Hi, first of all nice job on the script, have been using it for quite some time now Wink

However i've been having some problems lately when i google a country or something (it seems to happen with "locations" in general).
Here is a bit of output of what happens:

Quote:

[19:42] <!inz> !g belgium
[19:42] <@AChTUNG> Related searches: belgium daycare? belgium stabbing Search Results Belgium - Wikipedia, the free encyclopedia Straddling the cultural boundary between Germanic and Latin Europe, Belgium is home for two main linguistic groups, the Flemings and the French-speakers, ... en.wikipedia.org/wiki/Belgium - 382k - Cached - Similar pages Belgian Tourist Office - official website - Front Page Belgium (VisitBelgium) is
[19:42] <@AChTUNG> the only official site of the Belgian Tourist offices in the Americas. Everything you want to know about Belgium when planning a ... www.visitbelgium.com/ - 29k - Cached - Similar pages CIA - The World Factbook -- Belgium Features a map and brief descriptions of geography, economy, government, and people. https://www.cia.gov/library/publications/the-world-factbook/geos/be.html - 117k - Cached - Similar
...


This seems to happen with almost every location like country names, cities and stuff. I think it has something to do with google adding a google maps widget to the result maybe.
I'm using 1.9.9a.

Can you help out?

Thanks, inz
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: Tue Jan 27, 2009 7:04 pm    Post subject: Reply with quote

Incith:Google v1.9.9b .. Have a fun
This should correct most of the problems people are having, hopefully *crosses fingers* There might still be issues here and there every now and then but for the most part in my testing at least these problems seem to have settled...

Also, went ahead and made another script, this one is mainly to show web links titles and shortening before clicking, but can be used for more.
Quote:
<speechles> !webby http://www.youtube.com/watch?v=s3eqxb1bihs
<sp33chy> YouTube - Gorilla Zoe-Lost(official music video) ( http://tinyurl.com/bfucnt ) ( text/html; charset=utf-8; 96206 bytes )
<sp33chy> The New Gorilla Zoe video lostThis video doesnt havent Lil Wayne in it sorry, unlike the remixDownload mp3 here:http://www.zshare.net/<snipped warez link>/...

<speechles> !webby --xheader --html www.youtube.com --header
<sp33chy> YouTube - Broadcast Yourself. ( http://tinyurl.com/9zza6 ) ( text/html; charset=utf-8; 72292 bytes )
<sp33chy> Server=Apache; Keep-Alive=timeout=300; Expires=Tue, 27 Apr 1971 19:44:06 EST; Date=Wed, 28 Jan 2009 01:05:32 GMT; Content-Type=text/html; charset=utf-8; Content-Length=72302; Connection=Keep-Alive; Cache-Control=no-cache
<sp33chy> X-Content-Type-Options=nosniff
<sp33chy> HTML 4.01 Transitional//EN; Page-Size=72292 bytes; Page-Charset=Unknown; Page-Author=Unknown
<sp33chy> Share your videos with friends, family, and the world

<speechles> !webby http://tinyurl.com/cb5g7h
<sp33chy> egghelp.org community :: View topic - UNOFFICIAL incith-google 1.9.9b (Jan27,2oo8) ( http://tinyurl.com/cb5g7h ) ( text/html; 36914 bytes; 1 redirects )

Just another useless script I wrote to traverse redirects of web links people paste and give the titles of the final page, as well as convert them into a tinyurl. Can also display headers/x-headers and html doctypes using switches as shown above. The switches can be anywhere, before the url, after the url and it won't matter. You can default the switches to 'always on' using the config. Webby .. Most important, have a fun! Razz
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
inz
Voice


Joined: 25 Jan 2009
Posts: 3

PostPosted: Wed Jan 28, 2009 1:33 pm    Post subject: Reply with quote

nice job, thanks a lot!
Back to top
View user's profile Send private message
tmyoungjr
Voice


Joined: 24 Aug 2007
Posts: 14

PostPosted: Wed Jan 28, 2009 4:39 pm    Post subject: Reply with quote

just a request.

can you add encyclopedia dramatica?

it seems to be structured much like wikipedia so i hope it isn't a huge pain to add. and if you can't that is ok too!
Back to top
View user's profile Send private message
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Wed Jan 28, 2009 4:45 pm    Post subject: Reply with quote

<user> !wikimedia .encyclopediadramatica.com youtube
<Bot> YouTube | YouTube is a place where every illiterate [censored] on the internet converges on one website. It is also a crappy video site, which was preceded by Break.com in all manners of fugly girls posing, noobs, drag queens posing, fantards, clips from gay animes, old memes, and goth/emo videos. Practically everything in the "most viewed" and "top rated" categories are either softcore porn, clips from
<Bot> [censored] tv shows or sporting events, YouTube Poop, weeaboo faggotry, politically incendiary crap, stupid pet tricks, men measuring their manboobs (HOT!), and let us not forget underage girls shaking their asses on camera. YouTube is pure drama, the entire user base being full of emotional morons who will whine and bitch at th @ http://encyclopediadramatica.com/Youtube

Work with !wikimedia or !wk for search any wikimedia script website based.

And plus, you can add custom trigger for any wiki, like you can see in this line of tcl:

# Custom wiki triggers
# This is used to customize triggers for different wikimedia sites.
# The format is "trigger:wikisite.here"
variable wiki_customs {
"rw:wiki.roms-isos.com"
"gw:wiki.gbatemp.net/wiki"
"ed:encyclopediadramatica.com"
"un:uncyclopedia.org"
"wq:en.wikiquote.org/wiki"
"lw:lyricwiki.org"
"wk:en.wiktionary.org"
}

Search and edit by yourself and rehash your bot conf.
Back to top
View user's profile Send private message
tmyoungjr
Voice


Joined: 24 Aug 2007
Posts: 14

PostPosted: Wed Jan 28, 2009 5:33 pm    Post subject: Reply with quote

testebr wrote:
<user> !wikimedia .encyclopediadramatica.com youtube

Work with !wikimedia or !wk for search any wikimedia script website based.

And plus, you can add custom trigger for any wiki, like you can see in this line of tcl:

# Custom wiki triggers
# This is used to customize triggers for different wikimedia sites.
# The format is "trigger:wikisite.here"
variable wiki_customs {
"rw:wiki.roms-isos.com"

Search and edit by yourself and rehash your bot conf.


wonderful - thanks Smile
Back to top
View user's profile Send private message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Fri Jan 30, 2009 8:12 pm    Post subject: Reply with quote

Hey

I have some problems, don't know where to look

When i use !youtube <some name here> The result is "45800 résultats de la recherche de vidéos | Lady Gaga" <--- i don't understand that language.

Any idea where to look?
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Fri Jan 30, 2009 8:21 pm    Post subject: Reply with quote

Fire-Fox wrote:
Hey

I have some problems, don't know where to look

When i use !youtube <some name here> The result is "45800 résultats de la recherche de vidéos | Lady Gaga" <--- i don't understand that language.

Any idea where to look?

It's french. Use !tr <stuff> to find out what it is. This script does have that ability.
Quote:
<speechles> !tr 45800 résultats de la recherche de vidéos
<sp33chy> Google says: (auto->en) Translation: French (automatically detected) » English >> 45800 results of the search for bones video

Dunno where bones comes in, google translations needs serious work on their end. But anyways, look to the config section of the script for this part.
Code:
    # set debug and administrator here
    # this is used for debugging purposes
    #----------
    variable debug 1
    variable debugnick speechles

They come enabled by default and my nickname is preset. So keep debug as 1, and set your nickname (not mine) as debugnick. After doing this your bot will begin messaging you anytime a trigger has been executed, it should look similar to below.
Quote:
<YourBot> redirected (302): http://www.youtube.com/results?search_query=avenue%20D -> http://fr.youtube.com/results?search_query=avenue%20D
<YourBot> url: http://fr.youtube.com/results?search_query=avenue%20D charset: utf-8 encode_string: iso8859-1

If you indeed see it like above, then no matter what you set your country, or how you attempt to switch will make it workk. Youtube is using the geographical location of your ip to set the language templates, not following the query but redirecting it appropriately. Which yes, sucks, because this goes against the basic freedom to be out of location in a foriegn country. You will always get their langauge, not your native tongue. There may be another way to query youtube and keep this information intact without them trying to redirect us back to our geo-location. If anyone knows of one, feel free to shout out your finds.
_________________
speechles' eggdrop tcl archive


Last edited by speechles on Fri Jan 30, 2009 8:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Fri Jan 30, 2009 8:30 pm    Post subject: Reply with quote

Hey

Here is the output

Code:
<LillePil> redirected (302): http://www.youtube.com/results?search_query=lady%20gaga -> http://fr.youtube.com/results?search_query=lady%20gaga :: cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw; path=/; domain=.youtube.com; PREF=f1=50000000; path=/; domain=.youtube.com; expires=Tue, 29-Jan-2019 00:28:13 GMT; GEO=b4eccb3ca4e0c9a09fc77e2e432ee667cwwAAAAyRlJbeQaTAB2bg0k=; path=/; domain=.youtube.com; expires=Mon, 02-Feb-2009 00:28:13 GMT;


And yes you wrote it Very Happy

My box is in france Sad so that explains it


btw: google prints out in english, and danish ? so i think youtube can to

Quote:
[01:32:06] [!Apache] !google mirc
[01:32:08] [@LillePil] 16,100,000 Results | mIRC: Internet Relay Chat client @ http://www.mirc.com/ | mIRC: Download mIRC @ http://www.mirc.com/get.html | mIRC - Wikipedia, the free encyclopedi @ http://en.wikipedia.org/wiki/MIRC | www.mirc.org ? Index Page. @ http://www.mirc.org/

_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Jan 31, 2009 12:48 pm    Post subject: Reply with quote

Fire-Fox wrote:
btw: google prints out in english, and danish ? so i think youtube can to

Quote:
[01:32:06] [!Apache] !google mirc
[01:32:08] [@LillePil] 16,100,000 Results | mIRC: Internet Relay Chat client @ http://www.mirc.com/ | mIRC: Download mIRC @ http://www.mirc.com/get.html | mIRC - Wikipedia, the free encyclopedi @ http://en.wikipedia.org/wiki/MIRC | www.mirc.org ? Index Page. @ http://www.mirc.org/

Sure, google isn't redirecting you from the server you've chosen to a local one (geo-locating). Check your bots debug messages. The only site within this script doing that is youtube and it has happened recently doing this. I've got a small work-around implemented to let them do their redirecting all they want. It will then use the language tag markers within the query to choose the template for the language you've chosen. This appears to work but I'm not sure if this will affect results given. If all content is mirrored onto all servers, this shouldn't affect your results. But if content on .com is unique to content on .fr then this most certainly will affect results... Crying or Very sad

Quote:
<sp33chy> redirected (302): http://fr.youtube.com/results?search_query=eggdrop&hl=fr -> http://www.youtube.com/results?search_query=eggdrop&hl=fr :: cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw; path=/; domain=.youtube.com; GEO=e9d4ac3157557f31a75e17b969f3aa70cwwAAAAyVVNG5/m1AAV7hEk=; path=/; domain=.youtube.com; expires=Mon, 02-Feb-2009 16:23:33 GMT;
<sp33chy> url (200): http://www.youtube.com/results?search_query=eggdrop&hl=fr charset: utf-8 encode_string: iso8859-1 :: cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw; path=/; domain=.youtube.com; GEO=e9d4ac3157557f31a75e17b969f3aa70cwwAAAAyVVNG5/m1AAV7hEk=; path=/; domain=.youtube.com; expires=Mon, 02-Feb-2009 16:23:33 GMT

Notice the GEO cookie above, yep, thats causing our redirect and without it comes endless redirects. So the work around as you see is the language modifier passed (&hl=).
Even tho youtube is redirecting to a local server, you will still get the language of your choice.
Incith:Google v1.9.9c .. Have a fun Razz
_________________
speechles' eggdrop tcl archive
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 ... 25, 26, 27 ... 56, 57, 58  Next
Page 26 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