Skip to content

A tiny wrapper for Google's PageSpeed Insight API.

License

Notifications You must be signed in to change notification settings

dbrennand/ginsight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ginsight

A tiny wrapper for Google's PageSpeed Insight API.

Updates

  • 05/07/19: Minor code changes, updated dependencies.
  • 1/01/19: Added support for all parameters to API endpoint. These include:
    1. catagory: Defaults to Nonetype if not provided.
    2. strategy: Defaults to string "Desktop".
    3. utm_campaign: Defaults to Nonetype if not provided.
    4. utm_source: Defaults to Nonetype if not provided.

Dependencies

  • Python 3
  • Requests
pipenv install

Example Usage

from g_insight import g_insight
insight = g_insight("Insert Key Here.")
# Providing the only required parameter.
print(insight.check_website("https://google.com"))
# Using other params.
print(insight.check_website("https://google.com", catagory="performance", strategy="mobile", utm_campaign="g_insight", utm_source="g_insight"))

Authors -- Contributors

License

This project is licensed under the MIT License - see the LICENSE for details.

Releases

No releases published

Packages

No packages published

Languages