chews0n / glowing-waffle

SPE Calgary Data Science Mentorship program 2021
Apache License 2.0
1 stars 2 forks source link

Download files from OGC #10

Closed chews0n closed 3 years ago

chews0n commented 3 years ago

Create a class to download the production data and frack data needed for model training from OGC and save locally, might want to use urllib in python to do this with a GET request and have to figure out their URL system, eg.

https://reports.bcogc.ca/ogc/app001/r/ams_reports/bc_total_production?request=CSV_Y&session=11025679220612

is a URL for the data in CSV format

chews0n commented 3 years ago

Example For Production:

urllib.request.urlopen('https://reports.bcogc.ca/ogc/app001/r/ams_reports/bc_total_production?request=CSV_Y').read().decode()

chews0n commented 3 years ago

and for frac data:

urllib.request.urlopen('https://reports.bcogc.ca/ogc/app001/r/ams_reports/2?request=CSV_N').read().decode()

Also, the import is from urllib import request for this usage