airflow
This commit is contained in:
@@ -48,8 +48,6 @@ https://aoe2cm.net/draft/FMHZx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Airflow:
|
||||
Steps:
|
||||
- input aoecm link
|
||||
@@ -57,38 +55,6 @@ Steps:
|
||||
- run python script to process data
|
||||
|
||||
|
||||
## Jupyter notebook in docker:
|
||||
There are different images to choose from: https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html
|
||||
|
||||
docker run -it -p 8888:8888 jupyter/scipy-notebook:2023-03-27
|
||||
|
||||
Works only on WSL because of mounted host volume
|
||||
run detached:
|
||||
docker run --name jupyter -d \
|
||||
-p 8888:8888 \
|
||||
--user root \
|
||||
-e NB_USER="marcelo" \
|
||||
-e CHOWN_HOME=yes \
|
||||
-w "/home/marcelo" \
|
||||
-v ./jupyter-data:/home/marcelo \
|
||||
jupyter/scipy-notebook:2023-03-27
|
||||
|
||||
|
||||
configuration:
|
||||
https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html
|
||||
|
||||
How to install new packages:
|
||||
https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#conda-environments
|
||||
|
||||
|
||||
run inside container:
|
||||
pip install liquipediapy
|
||||
|
||||
|
||||
|
||||
docker cp jupyter:/home/marcelo/AoE-data.ipynb .
|
||||
|
||||
|
||||
|
||||
Actually, the API-usage on the official site is straight forward.
|
||||
A request to POST https://api.ageofempires.com/api/v2/AgeII/GetMPFull with content of {profileId: "199325", matchType: "3"} and a Header Content-Type: application/json for example will return JSON-encoded stats for Hera and RM. matchType corresponds to the leaderboard and is one of those: (Unranked=0, 1v1 Deathmatch=1, Team Deathmatch=2, 1v1 Random Map=3, Team Random Map=4).
|
||||
|
||||
Reference in New Issue
Block a user