Skip to content

Commit

Permalink
mirror global energy monitor datasets (temporary) (PyPSA#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
fneum authored Sep 8, 2024
1 parent 2eaa316 commit a69373b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions rules/retrieve.smk
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,9 @@ if config["enable"]["retrieve"]:
run:
import requests

response = requests.get(
"https://globalenergymonitor.org/wp-content/uploads/2024/05/Europe-Gas-Tracker-2024-05.xlsx",
headers={"User-Agent": "Mozilla/5.0"},
)
# mirror of 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"
response = requests.get(url)
with open(output[0], "wb") as f:
f.write(response.content)

Expand All @@ -329,10 +328,9 @@ if config["enable"]["retrieve"]:
run:
import requests

response = requests.get(
"https://globalenergymonitor.org/wp-content/uploads/2024/04/Global-Steel-Plant-Tracker-April-2024-Standard-Copy-V1.xlsx",
headers={"User-Agent": "Mozilla/5.0"},
)
# mirror or 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"
response = requests.get(url)
with open(output[0], "wb") as f:
f.write(response.content)

Expand Down

0 comments on commit a69373b

Please sign in to comment.