is an API retrieving Yugioh OCG cards' price by scraping data from bigweb and YUYU-TEI.
| Params | Description | Example |
|---|---|---|
| name | Card's name in japanese | ユニオン・キャリアー |
| source | Either bigweb or yuyutei | bigweb |
curl http://localhost/api/cards?name=ユニオン・キャリアー&source=yuyutei
{
"cards": [
{
"condition": "Play",
"id": "LVP3-JP011",
"jp_name": "ユニオン・キャリアー",
"price": "2980",
"rarity": "SCR"
},
{
"condition": "Play",
"id": "LVP3-JP011",
"jp_name": "ユニオン・キャリアー",
"price": "980",
"rarity": "UR"
}
],
"url": "https://yuyu-tei.jp/game_ygo/sell/sell_price.php?name=%E3%83%A6%E3%83%8B%E3%82%AA%E3%83%B3%E3%83%BB%E3%82%AD%E3%83%A3%E3%83%AA%E3%82%A2%E3%83%BC"
}virtualenv venv # For fish source venv/bin/activate.fish # For shell source venv/bin/activate pip install -r requirements.txt
# Run on machine gunicorn --bind 0.0.0.0:8080 --pythonpath src wsgi:app # Run on docker earthly +compose-up earthly +compose-down
earthly --build-arg TAG=<TAG> --push +release