Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

(Vb.Net)Searching and extracting Google results using Google's API (Source)

[img]http://k.min.us/inAITu.png[/img]


I wrote this application so that i could see how the google api works, what it can and can not do so that i could use it in another project that im currently working on in my free time. After playing with it for a bit, i soon found out that it has some issues with some of the more advanced search queries, and limits you to only 64 results. This was not a problem for me and my project, but i would not suggest that you use it as a dork scanner (for the obvious reasons above).

anyway.

I had to use a new listview control, just to set it to double buffered, i thought that having all the colors in there would make it flicker while i scrolled, and yes, it did (might just be my setup though) so, that how i fixed that problem. there is a nice little API usage in there to make the listview a little more "Smoother " looking when selecting and item (i hate that blue overlay) so it keeps the "Aero" theme. I added a custom auto-complete for the textbox. (actually, i just forgot to remove it befor posting the source), and then there is another little API in there to set the "Cue" text for the textbox when there is nothing in there.

moving on..

to build this project, you will have to reference the dll inside the "Google API" folder, and (if i remember correctly) you must keep the framework settings at/or above 3.0. After all that, your all set. Double clicking a link (item) will start the link in your default browser ("Process.start" anyone?)

so, there ya go..
i would only suggest that if your going to be using this in a mass project, double check with Googles TOS.

http://www.mediafire.com/?ge5nvivw0xbmvmp
Good job nathan. Hopefully we don't have anymore threads about this.
(May 3, 2011 04:56 AM)Deceptive Wrote:  Good job nathan. Hopefully we don't have anymore threads about this.

yeah, i know what you mean.

i was going to simply make a few WR and filter out the urls only, but then i also wanted the title and that little preview of the documents text.
combine that with the fact i wanted about the first 30'ish results, it was just all around easier for me to simply use their api.
Nice job. Google has some useful APIs but the only thing I dislike about it is that they format their information in JSON. And .NET requires a foreign DLL for it.
Yeah i like the bing api better
(May 3, 2011 05:18 AM)Apple Wrote:  Nice job. Google has some useful APIs but the only thing I dislike about it is that they format their information in JSON. And .NET requires a foreign DLL for it.

yep. the thing i did not like about this one was that, even though they offer (require) you to enter the amount of expected results, your still limited to 64 max. I never did anything with the news, image, or video search, so i cant say the same, but i would imagine it is indeed the same.

there was some things i did like, the ease of use, and the content it provided, but the thing i liked most about it, was that you did not need a developers key for this one. I lost mine (the email) about 6 hours after i first signed up for it. (that was only 8 or so months ago).

but i guess no matter where you go, you will always have your +1's and -1's.

(May 3, 2011 05:22 AM)MR^E Wrote:  Yeah i like the bing api bette

i was reading that on googles developer section... where someone was complaining about the limited amount of results you get from their API(s), and pretty much said that yahoo and bing kinda own google in that aspect.
API has some limitations, I prefer webrequests, and it can be easily done by downloading the page contest using the GET method and then just parsing the HTML file.
thank you bro really apreciated your share ;D
for posts like this im still in this section :D
great distribution, thanks for sharing it
Thread is a year old. Please don't grave dig guys.
Need a custom software? Check out my freelance service here! 6+ years and counting, never a complaint :)

STOP STEALING CODE.

FREE NATHAN

People who report posts are lamers.
sir, nathan . i need your permission to use your source i will implement it in my another project,
credit for you. thank you before 🤝


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Tutorial] by mmmihai13Sep 17, 2024 03:00 AM 0 112 Sep 17, 2024 03:00 AM
Last Post: mmmihai13
[C#] by JUSTINJun 8, 2019 07:39 PM 28 1,005 Jun 8, 2019 07:39 PM
Last Post: doxerhacker
[C#] by -PUBG-Jan 3, 2019 06:59 PM 17 622 Jan 3, 2019 06:59 PM
Last Post: -PUBG-