CLI + API for Google PageSpeed Insights
Project description
PyPSI
CLI 🖥 + API for Google PageSpeed Insights
Installation
pip install PythonPSI
Usage
psi <SITE_URL> <OPTION1> <OPTION2> ...
Example:
psi google.com --category seo --stratergy desktop --locale en
Arguments
URL
- Required--category
- Optional, default: performance, description: A Lighthouse category to run; if none are given, only Performance category will be run--locale
- Optional, default: en, description: The locale used to localize formatted results--stratergy
- Optional, default: desktop, description: The analysis strategy (desktop or mobile) to use, and desktop is the default--utm_campaign
- Optional, default: None, description: Campaign name for analytics.--utm_source
- Optional, default: None, description: Campaign source for analytics.--captcha_token
- Optional, default: None, description: The captcha token passed when filling out a captcha.
API Usage
from PythonPSI.api import PSI
PSI('google.com', category='seo', locale='en', stratergy='desktop')
# Returns JSON output
PSI
- Required arguments: 1, Optional arguments: 6
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PythonPSI-1.4.4.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for PythonPSI-1.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65a574002ac9933b2179a9d9edb42b4f2c456542b5b5070227c4b792899d00be |
|
MD5 | 963fec605f8405afd982bea0daa105cb |
|
BLAKE2b-256 | a2ed9113dc011d54e201f0569e4395b8e9ef6461e90b671c88fff6c6c23e02c9 |