I wrote a small Perl program to help collect images for use in my mosaics. It takes a search term then grabs as many images from Google Images as you want. It only saves the thumbnails, which are all I need for a mosaic.

This is exactly what I have been lookin for. Only if I know what to do with this source code. Can you elaborate a little more how I can get this to work? I'm not that savy with web programming. Thanks.

badsegue wrote:

I wrote a small Perl program to help collect images for use in my mosaics. It takes a search term then grabs as many images from Google Images as you want. It only saves the thumbnails, which are all I need for a mosaic.

:o This is exactly what I have been lookin for. Only if I know what to do with this source code. Can you elaborate a little more how I can get this to work? I'm not that savy with web programming. Thanks.

It may be a little awkward for those who aren't comfortable with running scripts. First you'll need to install perl. You can download it from ActiveStateI think it will add perl to your command path if you let it, then you can just run the script as I described in the instructions, e.g.:

Code:

perl get.pl "starry night" 1 100

If you let it associate ".pl" files with perl then you can try

Code:

get.pl "starry night" 1 100

Give it a try and let me know how it works, and I can try to help out if there are problems.

I tried the script and it works well. But as you said it just print out the filename. Do you think it is complicated for you to change the script to save to a subdirectory all the thumbnails directly?

It should be saving the thumbnails. You probably need to change the destination folder (I should have changed that earlier!). Change this line to point to your desired directory:

Code:

my $in = "F:/Images";

If you've done that and and it's still not working then let me know and I'll try to figure out what is wrong.

I'm also working on a small Windows program to do the same thing. That should be less trouble than a script. I'm able to get images from google and yahoo. I also am looking at grabbing images from a newsgroup service, like this one:
http://archive.xusenet.com/f/Urecommend/index.html

oops...I didnt check the destination folder...
I changed it to "./" so the program save the images to the local subdirectory. I think it's the best default setting. I just gave command

get.pl "flowers" 0 10000

and it is running very well. Just somewhat slow since it save/download one image at a time but this is not a problem. In the worst case I can run multiple commands at the same time, something like this:

oops...I didnt check the destination folder...I changed it to "./" so the program save the images to the local subdirectory. I think it's the best default setting. I just gave command

get.pl "flowers" 0 10000

and it is running very well. Just somewhat slow since it save/download one image at a time but this is not a problem. In the worst case I can run multiple commands at the same time, something like this:

I guess it would be better to make it multi-threaded for speed. I usually only grab about 500 images or so for a single search--after that the relevance of the images is usually pretty low. For something like flowers I'd do separate searches for "flowers", "rose", "tulip", etc., until I get enough good images. I'm looking at the various search engines, some seem better than others at finding images that closely match what I'm looking for. I'd like to get it to the point where you can pick the engines you want to use then it will fetch your search from all of them.

I wrote a small Perl program to help collect images for use in my mosaics. It takes a search term then grabs as many images from Google Images as you want. It only saves the thumbnails, which are all I need for a mosaic.

Wells, it's kinda too late now, but I still EXTREMELY WANT TO KNOW how to use this google image grabber, lol.

I'm trying to grab as many pictures of Rene Magritte's artwork and make a moasic from them, but doing this by hand and copying and pasting them each individually is just being waaaaaaay too time consuming.

Please post here as soon as ou possibly can with like instructions on how I can run your program. It's probably really simple, I just can't get to the right place to type in my search querey of "Rene Magritte" or "Magritte."

I have already downloaded Perl using the link you gave me, but I have no idea what that program is either, therefore I have no idea how to use your "script" or whatever, lol.

Please please please please please help as soon as you can, lol, I need this mosaic done soon. Thanks so much!

I guess I just have to accept the fact that I'll never figure this out.

Thanks for all your help, but it is still very vague to me. Lol, unless you are willing to go EXTREMELY in depth about how I can use your tool, I wont be able to use it LOL (because I'm not good with scripts at all).

That's ok though, I don't want to steal all of your time, but if you are willing to I will DEFINITLY LISTEN! LOL

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum