Sunday, October 24, 2010

C# google image search

Need not much of an explanation I guess.
The title has it all....
....a C# API for searching images from google.
Works on Regex for matching the image URL from the HTML returned for the image tag search.This might stop working anytime google changes the formatting.
Even the current regex is not returning all the images from a page.Working on that though..would be fixed in the next release*.
I started this to try the AsynEnumerator from PowerThreading Library by Wintellect.
I guess i've not understood it fully and there is an overuse of it in this version..that too would be looked into the next release*.


Download VS2010 source code (rename to .rar)
Download VS2008 source code (rename to .rar)

*Conditions Apply: might be there :)

13 comments:

  1. Hi, i saw your reply on codeproject. I am interested in the application you had created. Thank you very much.

    I tried to download the file in .txt however i have a problem changing the extension to (.rar), I simple hit F2 to change the extension but it do not work. Am i doing it correctly? Thanks

    ReplyDelete
  2. Sorry, for the trouble. I had Google it will let you know once i tried the application.

    Thank you so much :)

    ReplyDelete
  3. Hi,
    hope you were able to get it working
    let me know if you need any help.
    Not a full fledged API though..will soon put up an updated version :-)

    ReplyDelete
  4. hey wer is the api,, how to use it

    ReplyDelete
  5. download the code from the link provided..rename to rar and use it :)

    ReplyDelete
  6. Hi Rahul,
    I am using Visual C# 2008 and .Net Framework v3.5 however i could not execute your .exe file in the debug folder, it prompt me with an error.

    I tried to run the ImageSearch.sln , however it do not run the .sln, it state below the icon with a remarks "version unrecognized".

    Can you please advices thanks!

    ReplyDelete
  7. hi,
    I had developed it in 2010.
    You can create a new project for yourself and just add the class file to your project and use it.
    You can also try making the solution open in 2008.
    Check this link for help on that
    http://social.msdn.microsoft.com/Forums/en-US/vsprereleaseannouncements/thread/4345a151-d288-48d6-b7c7-a7c598d0f85e

    ReplyDelete
  8. Hi, Thanks i will try it out and let you know again :) thank you. i look forward to see what u had create hehe. thanks!

    ReplyDelete
  9. Hi Rahul, I solved my problem my downloading Visual Studio C# express for 2010. It solve the problem at least for a while :) I have tried the image search, however the image do not appear on the application is itself. Is it suppose to be that way? however i was able to see the URL links.

    ReplyDelete
  10. I have uploaded the project in Visual studio 2008
    You can get it from here http://www.4shared.com/document/k64w5Zw4/ImageSearch2008.htm
    The images would be displayed as it is

    ReplyDelete
  11. thanks you very much!!! ((: i will take a look at it.

    ReplyDelete
  12. Hi Rahul, thanks for the effort for converting the program to v2008 friendly. I had tried the application and i am impressed by it :) I am wondering if i could return more result or images. etc 50images? Thanks

    ReplyDelete
  13. Hi,
    Thanks for trying it out :)
    In the service call service.GetImagesAsync(textBox1.Text, ServiceCallback,5);
    the number 5 indicates the number of images you want to retrieve.You can change that to 50 and try.

    ReplyDelete

Note: Only a member of this blog may post a comment.