[go: up one dir, main page]

Skip to content

heloowird/fetch_google_images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

fetch_google_images

The scripts aim to fetch results of google image search when using keywords or image to get related or same source images.

Usage:

  • Before running scripts, you should replace some arguments in codes.

    • http_proxy=[your_proxy]
      • If you can access google directly, then delete it. If not, using an available proxy to replace it
    • --user-agent="[your_user_agent]"
      • Use user agent in your browser. Like this:

          Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
        
  • sh fetch_google_same_images.sh [images url and prefix file] [target directory of html files]

    • format of images url and prefix file, tab as separator:

        url_1,prefix_1
        url_2,prefix_2
        ...
      
  • sh fetch_google_search_images.sh [keywords and prefix file] [target directory of html files]

    • format of keywords and prefix file, tab as separator:

        keyword_1,prefix_1
        keyword_2,prefix_2
        ...