An open API service indexing awesome lists of open source software.

https://github.com/dbrennand/ginsight

A tiny wrapper for Google's PageSpeed Insight API.
https://github.com/dbrennand/ginsight

google google-api pagespeed pagespeed-insights pagespeed-insights-api python3 wrapper

Last synced: about 2 months ago
JSON representation

A tiny wrapper for Google's PageSpeed Insight API.

Awesome Lists containing this project

README

        

# 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
```python
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
* **dbrennand** - *Author* - [dbrennand](https://github.com/dbrennand)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) for details.