项目作者: vitorbaptista

项目描述 :
Data extraction of Google's COVID-19 Mobility Reports
高级语言: HTML
项目地址: git://github.com/vitorbaptista/google-covid19-mobility-reports.git
创建时间: 2020-04-04T18:34:50Z
项目社区:https://github.com/vitorbaptista/google-covid19-mobility-reports

开源协议:MIT License

下载


This project is archived. Google now provides the full data as a CSV, so it isn’t needed anymore.

Google COVID-19 Mobility Reports

Archive of the Google COVID-19 Mobility Reports’ PDFs and their data extracted
as a CSV.

Motivation

Google launched a series of reports on their user’s mobility
during the Coronavirus pandemic. According to their website, the reports “chart
movement trends over time by geography, across different categories of places
such as retail and recreation, groceries and pharmacies, parks, transit
stations, workplaces, and residential.”

https://www.google.com/covid19/mobility/

This data is very interesting and important during these times. However, it’s
only available as a PDF per country (or per State in the USA). This project has
two goals:

  1. Provide an archive of the reports
  2. Extract this data into a more convenient format (CSV or JSON)

Where is the data?

How reliable is the CSV?

I’ve been very careful in checking that the data in the CSV corresponds to the
data in the PDF. There are tests to reduce the possibility of bugs being
introduced, and I manually checked a few of the results.

That being said, there are no guarantees that the data is error-free. I
recommend double checking the CSV with the raw PDFs if you want to be sure. If
you find any errors, please create an issue.

Installing

To run it locally, you need pdftotext and a recent Python version
(tested on 3.8, but it should work on 3.6+). You can then download any new
reports and parse the files by running make.

This will download the main Mobility Reports’ HTML page,
saving it into data/raw/html, then download any new PDF
reports into data/raw/reports, and finally parse them,
saving the results to
data/processed/mobility_reports.csv.

If you want to convert a single report PDF to CSV, run:

  1. PYTHONPATH=. python mobility_reports/cli.py <PATH_TO_THE_PDF>

This command accepts multiple paths, and outputs the CSV to stdout.

License

The data is copyrighted by Google. Everything else is licensed under the MIT
License
.

2020-04-11_US_Washington_Mobility_Report_en_1650881683676.pdf
2020-04-11_US_West_Virginia_Mobility_Report_en_1650881684188.pdf
2020-04-11_US_Wisconsin_Mobility_Report_en_1650881684243.pdf
2020-04-11_US_Wyoming_Mobility_Report_en_1650881684265.pdf
2020-04-11_UY_Mobility_Report_en_1650881684289.pdf
2020-04-11_VE_Mobility_Report_en_1650881684336.pdf
2020-04-11_VN_Mobility_Report_en_1650881684340.pdf
2020-04-11_YE_Mobility_Report_en_1650881684373.pdf
2020-04-11_ZA_Mobility_Report_en_1650881684377.pdf
2020-04-11_ZM_Mobility_Report_en_1650881684443.pdf
2020-04-11_ZW_Mobility_Report_en_1650881684461.pdf
2020-04-11_US_Rhode_Island_Mobility_Report_en_1650881682989.pdf
2020-04-11_US_South_Carolina_Mobility_Report_en_1650881683072.pdf
2020-04-11_US_South_Dakota_Mobility_Report_en_1650881683096.pdf
2020-04-11_US_Tennessee_Mobility_Report_en_1650881683128.pdf
2020-04-11_US_Texas_Mobility_Report_en_1650881683187.pdf
2020-04-11_US_Utah_Mobility_Report_en_1650881683389.pdf
2020-04-11_US_Vermont_Mobility_Report_en_1650881683410.pdf
2020-04-11_US_Virginia_Mobility_Report_en_1650881683462.pdf
2020-04-11_US_New_Jersey_Mobility_Report_en_1650881681994.pdf
2020-04-11_US_New_Mexico_Mobility_Report_en_1650881682017.pdf
2020-04-11_US_New_York_Mobility_Report_en_1650881682083.pdf
2020-04-11_US_North_Carolina_Mobility_Report_en_1650881682375.pdf
2020-04-11_US_North_Dakota_Mobility_Report_en_1650881682427.pdf
2020-04-11_US_Ohio_Mobility_Report_en_1650881682461.pdf
2020-04-11_US_Oklahoma_Mobility_Report_en_1650881682558.pdf
2020-04-11_US_Oregon_Mobility_Report_en_1650881682872.pdf
2020-04-11_US_Pennsylvania_Mobility_Report_en_1650881682958.pdf
2020-04-11_US_Maine_Mobility_Report_en_1650881680993.pdf
2020-04-11_US_Maryland_Mobility_Report_en_1650881681021.pdf
2020-04-11_US_Massachusetts_Mobility_Report_en_1650881681042.pdf
2020-04-11_US_Michigan_Mobility_Report_en_1650881681124.pdf
2020-04-11_US_Minnesota_Mobility_Report_en_1650881681434.pdf
2020-04-11_US_Mississippi_Mobility_Report_en_1650881681506.pdf
2020-04-11_US_Missouri_Mobility_Report_en_1650881681556.pdf
2020-04-11_US_Mobility_Report_en_1650881681687.pdf
2020-04-11_US_Montana_Mobility_Report_en_1650881681794.pdf
2020-04-11_US_Nebraska_Mobility_Report_en_1650881681904.pdf
2020-04-11_US_Nevada_Mobility_Report_en_1650881681943.pdf
2020-04-11_US_New_Hampshire_Mobility_Report_en_1650881681960.pdf
2020-04-11_US_Florida_Mobility_Report_en_1650881679995.pdf
2020-04-11_US_Georgia_Mobility_Report_en_1650881680050.pdf
2020-04-11_US_Hawaii_Mobility_Report_en_1650881680149.pdf
2020-04-11_US_Idaho_Mobility_Report_en_1650881680240.pdf
2020-04-11_US_Illinois_Mobility_Report_en_1650881680335.pdf
2020-04-11_US_Indiana_Mobility_Report_en_1650881680383.pdf
2020-04-11_US_Iowa_Mobility_Report_en_1650881680465.pdf
2020-04-11_US_Kansas_Mobility_Report_en_1650881680689.pdf
2020-04-11_US_Kentucky_Mobility_Report_en_1650881680731.pdf
2020-04-11_US_Louisiana_Mobility_Report_en_1650881680952.pdf
2020-04-11_TH_Mobility_Report_en_1650881678983.pdf
2020-04-11_TJ_Mobility_Report_en_1650881679016.pdf
2020-04-11_TR_Mobility_Report_en_1650881679036.pdf
2020-04-11_TT_Mobility_Report_en_1650881679068.pdf
2020-04-11_TW_Mobility_Report_en_1650881679085.pdf
2020-04-11_TZ_Mobility_Report_en_1650881679204.pdf
2020-04-11_UG_Mobility_Report_en_1650881679218.pdf
2020-04-11_US_Alabama_Mobility_Report_en_1650881679267.pdf
2020-04-11_US_Alaska_Mobility_Report_en_1650881679303.pdf
2020-04-11_US_Arizona_Mobility_Report_en_1650881679328.pdf
2020-04-11_US_Arkansas_Mobility_Report_en_1650881679431.pdf
2020-04-11_US_California_Mobility_Report_en_1650881679492.pdf
2020-04-11_US_Colorado_Mobility_Report_en_1650881679588.pdf
2020-04-11_US_Connecticut_Mobility_Report_en_1650881679911.pdf
2020-04-11_US_Delaware_Mobility_Report_en_1650881679956.pdf
2020-04-11_US_District_of_Columbia_Mobility_Report_en_1650881679974.pdf
2020-04-11_RE_Mobility_Report_en_1650881677912.pdf
2020-04-11_RO_Mobility_Report_en_1650881678634.pdf
2020-04-11_RW_Mobility_Report_en_1650881678664.pdf
2020-04-11_SA_Mobility_Report_en_1650881678706.pdf
2020-04-11_SE_Mobility_Report_en_1650881678721.pdf
2020-04-11_SG_Mobility_Report_en_1650881678747.pdf
2020-04-11_SI_Mobility_Report_en_1650881678800.pdf
2020-04-11_SK_Mobility_Report_en_1650881678861.pdf
2020-04-11_SN_Mobility_Report_en_1650881678894.pdf
2020-04-11_SV_Mobility_Report_en_1650881678935.pdf
2020-04-11_TG_Mobility_Report_en_1650881678943.pdf
2020-04-11_MD_Mobility_Report_en_1650881676968.pdf
2020-04-11_MK_Mobility_Report_en_1650881677070.pdf
2020-04-11_ML_Mobility_Report_en_1650881677085.pdf
2020-04-11_MM_Mobility_Report_en_1650881677098.pdf
2020-04-11_MN_Mobility_Report_en_1650881677114.pdf
2020-04-11_MT_Mobility_Report_en_1650881677131.pdf
2020-04-11_MU_Mobility_Report_en_1650881677136.pdf
2020-04-11_MX_Mobility_Report_en_1650881677206.pdf
2020-04-11_MY_Mobility_Report_en_1650881677213.pdf
2020-04-11_MZ_Mobility_Report_en_1650881677231.pdf
2020-04-11_NA_Mobility_Report_en_1650881677263.pdf
2020-04-11_NE_Mobility_Report_en_1650881677279.pdf
2020-04-11_NG_Mobility_Report_en_1650881677301.pdf
2020-04-11_NI_Mobility_Report_en_1650881677373.pdf
2020-04-11_NL_Mobility_Report_en_1650881677415.pdf
2020-04-11_NO_Mobility_Report_en_1650881677431.pdf
2020-04-11_NP_Mobility_Report_en_1650881677478.pdf
2020-04-11_NZ_Mobility_Report_en_1650881677496.pdf
2020-04-11_OM_Mobility_Report_en_1650881677604.pdf
2020-04-11_PA_Mobility_Report_en_1650881677642.pdf
2020-04-11_PE_Mobility_Report_en_1650881677655.pdf
2020-04-11_PG_Mobility_Report_en_1650881677699.pdf
2020-04-11_PH_Mobility_Report_en_1650881677704.pdf