Skip to content
/ gglsbl Public
forked from afilipovich/gglsbl

Python client library for Google Safe Browsing API

License

Notifications You must be signed in to change notification settings

ribbles/gglsbl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gglsbl

Python client library for Google Safe Browsing API

Disclaimer

While the code was developed according to official Developers Guide this is not a reference implementation. You also may want to check Acceptable Use Policy for Safe Browsing API

Quick start

Get Google API key

Instructions can be found here

Install the library
    python setup.py install
To sync local hash prefix cache
    from gglsbl import SafeBrowsingList
    sbl = SafeBrowsingList('API KEY GOES HERE')
    sbl.update_hash_prefix_cache()

On a first run it may take up to several hours to complete the sync

URL lookup
    from gglsbl import SafeBrowsingList
    sbl = SafeBrowsingList('API KEY GOES HERE')
    sbl.lookup_url('http://github.com/')

CLI Tool

Please see gglsbl_client.py which can be used to sync lists data in the background and perform single URL lookups

About

Python client library for Google Safe Browsing API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%