Skip to content

quocthinhvo/Crawler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Crawler

Using module request and bs4 to crawler a number of image from google image when input a search string.

Idea

When we search somethings in the google image, the result is represented as a HTML file. Our duty is select the # img tag from this file, and download the # "src" atribute.

Usage

  1. Install the nearest vesion of important module

     pip install --upgrade requests
    
     pip install --upgrade beautifulsoup4
    
     pip install --upgrade chardet
    
  2. cd to path that you want to place your image

     cd path/to/file
    
  3. clone this repo

     git clone https://github.com/trannhatkhoacm1612/Crawler
    
  4. Run the crawler.py

    You will call the download function and must input two parameters:

    • The string that to querry.

    • The interer number represented the number of img you want to download.

      download("dog",10) # install 10 img with the querry "dog" in google img
      

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%