Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

google_dl

Python script to download files via Google search.

Installation

In order to use the script you need to install Python 3.x and the following packages:

  • setuptools

    For example:

      pip install setuptools
    
  • xgoogle (included as a git submodule in xgoogle/)

    For example:

      git submodule update --init
      pip install -r xgoogle/requirements.txt
      python xgoogle/setup.py build
      python xgoogle/setup.py install
      pip install -r requirements.txt
    

Disclaimer

Before using, please read Google Terms of Service

Don't misuse our Services. For example, don't interfere with our Services or try to access them using a method other than the interface and the instructions that we provide.

It is provided for personal study and research.

Usage

usage: google_dl.py [-?] [-v] [-d DEST] [-s SITE] [-f FILETYPE] [-x]
                    [-t TIMEOUT] [-m MAXRESULTS] [-p RESULTSPERPAGE]
                    query [query ...]

positional arguments:
  query                 Query to search for.

optional arguments:
  -?, --help            Show this help message and exit
  -v, --verbose         increase output verbosity.
  -d DEST, --download-dir DEST
                        Directory to download files.
  -s SITE, --site SITE  Site to search for.
  -f FILETYPE, --file-type FILETYPE
                        File type to download.
  -x, --force-directories
                        Create a hierarchy of directories based on the URL.
  -t TIMEOUT, --timeout TIMEOUT
                        Set socket read timeout for downloading in seconds
                        (float).
  -m MAXRESULTS, --max-results MAXRESULTS
                        Set maximum results to scrape.
  -p RESULTSPERPAGE, --results-per-page RESULTSPERPAGE
                        Set number of results per page.

License

Licensed under MIT license.

About

Python script to download files via Google search.

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages