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.
- Host: GitHub
- URL: https://github.com/dbrennand/ginsight
- Owner: dbrennand
- License: mit
- Created: 2018-12-12T13:08:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:46:30.000Z (over 2 years ago)
- Last Synced: 2025-03-25T04:53:42.782Z (about 2 months ago)
- Topics: google, google-api, pagespeed, pagespeed-insights, pagespeed-insights-api, python3, wrapper
- Language: Python
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.