mirror global energy monitor datasets (temporary) (#1265)

This commit is contained in:
Fabian Neumann 2024-09-08 13:00:15 +02:00 committed by GitHub
parent 2eaa316a6b
commit a69373b96c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -312,10 +312,9 @@ if config["enable"]["retrieve"]:
run: run:
import requests import requests
response = requests.get( # mirror of https://globalenergymonitor.org/wp-content/uploads/2024/05/Europe-Gas-Tracker-2024-05.xlsx
"https://globalenergymonitor.org/wp-content/uploads/2024/05/Europe-Gas-Tracker-2024-05.xlsx", url = "https://tubcloud.tu-berlin.de/s/LMBJQCsN6Ez5cN2/download/Europe-Gas-Tracker-2024-05.xlsx"
headers={"User-Agent": "Mozilla/5.0"}, response = requests.get(url)
)
with open(output[0], "wb") as f: with open(output[0], "wb") as f:
f.write(response.content) f.write(response.content)
@ -329,10 +328,9 @@ if config["enable"]["retrieve"]:
run: run:
import requests import requests
response = requests.get( # mirror or https://globalenergymonitor.org/wp-content/uploads/2024/04/Global-Steel-Plant-Tracker-April-2024-Standard-Copy-V1.xlsx
"https://globalenergymonitor.org/wp-content/uploads/2024/04/Global-Steel-Plant-Tracker-April-2024-Standard-Copy-V1.xlsx", url = "https://tubcloud.tu-berlin.de/s/Aqebo3rrQZWKGsG/download/Global-Steel-Plant-Tracker-April-2024-Standard-Copy-V1.xlsx"
headers={"User-Agent": "Mozilla/5.0"}, response = requests.get(url)
)
with open(output[0], "wb") as f: with open(output[0], "wb") as f:
f.write(response.content) f.write(response.content)