A tiny wrapper for Google's PageSpeed Insight API.
- 05/07/19: Minor code changes, updated dependencies.
- 1/01/19: Added support for all parameters to API endpoint. These include:
- catagory: Defaults to Nonetype if not provided.
- strategy: Defaults to string "Desktop".
- utm_campaign: Defaults to Nonetype if not provided.
- utm_source: Defaults to Nonetype if not provided.
- Python 3
- Requests
pipenv install
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"))
- dbrennand - Author - dbrennand
This project is licensed under the MIT License - see the LICENSE for details.