Files
Exiled-Exchange-2/dataParser/pull-json.sh
Kvan7 850fa90455 v0.6.0 (#328)
* [Parse Error] - Rarity: Magic #285 (#315)

* Add in fix

Co-authored-by: @vagrant-soul

* Adds regression tests

* Features/uniqueRollsRewrite (#316)

* update with new rolls system

* More or less working now

* adds fix for some stats from json having +

* Features/jewels (#317)

* Fix help text on jewels

* Add fix for shock

* [Not Recognized Modifier] - (most monster map modifiers) #314

* Features/showItemOnHover (#322)

* Move row into own component

* add tooltip on shift and hover

* works MVP

* style and fix affix strings

* pseudo add

* change tooltip method to more dynamic

* Corrupted back to red

* style updates

* Add option for tooltip in settings

* Features/relics (#323)

* update en strings

* translation client strings

* Fix relic parse error

* Tag text

* enable relic filters by default

* add spanish? (#324)


Co-authored-by: @mgallego

* Divider line shows when it shouldn't on non weapons or armour #325

* Features/newRunes (#326)

* Rip out old rune code

* final removed stuff?

* change filter back to number

* use new rune filter

* done runes

* Remove alpha

* Features/runeSocketsPart4 (#327)

* some stat change is working

* iron working?

* new betterer way?

* DONE DONE DONE

* add translation line

* version bump
2025-01-19 19:53:35 -06:00

49 lines
1.4 KiB
Bash

#!/bin/bash
# Array of language codes and their corresponding base URLs
declare -A lang_urls=(
["en"]="https://www.pathofexile.com"
["ru"]="https://ru.pathofexile.com"
["ko"]="https://poe.game.daum.net"
["cmn-Hant"]="https://pathofexile.tw"
["ja"]="https://jp.pathofexile.com"
["de"]="https://de.pathofexile.com"
["es"]="https://es.pathofexile.com"
)
# URLs to fetch JSON from (relative paths)
urls=(
"/api/trade2/data/filters"
"/api/trade2/data/stats"
"/api/trade2/data/items"
"/api/trade2/data/static"
)
# Loop through each language
for lang in "${!lang_urls[@]}"; do
# Directory to save the JSON files for the current language
output_dir="./vendor/json-api/$lang"
# Create output directory if it doesn't exist
mkdir -p "$output_dir"
# Loop through each URL
for relative_url in "${urls[@]}"; do
# Construct the full URL
url="${lang_urls[$lang]}$relative_url"
# Extract the filename from the relative URL
filename=$(basename "$relative_url")
echo "Fetching JSON from: $url for language: $lang"
# Fetch the JSON data and save it to a file
curl -s "$url" -o "$output_dir/$filename.json"
if [ $? -eq 0 ]; then
echo "Saved JSON to: $output_dir/$filename.json"
else
echo "Failed to fetch JSON from: $url"
fi
done
done