Closed chews0n closed 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()
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
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