heloowird / fetch_google_images

fetch google images by images or words

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
        ...
      

About

fetch google images by images or words


Languages

Language:Shell 100.0%