Skip to content

A python script that calls the pagespeed api and requests URLs be run. The JSON returned is filtered to only include desired metrics, they are then saved to a local csv for analysis.

Notifications You must be signed in to change notification settings

gwilkes-rv/google-pagespeed-api-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYNOPSIS

  1. This script reads urls from 'pagespeed.txt' file. Load this file with full URLS.
  2. Queries each url with the google pagespeed api.
  3. Filters JSON results to only include desired metrics.
  4. Metrics are saved to local .csv spreadsheet for analysis.

Reqs

Python3

Google API Key

Create API Key: https://console.developers.google.com/apis/credentials (Create Credentials)

Enable PageSpeed Insights API: https://console.developers.google.com/apis/api/pagespeedonline.googleapis.com/overview

export GOOGLE_API_KEY={YOUR_KEY}

About

A python script that calls the pagespeed api and requests URLs be run. The JSON returned is filtered to only include desired metrics, they are then saved to a local csv for analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%