This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download the database | |
wget https://mtgjson.com/json/AllCards.json.zip | |
# Unzip it | |
unzip AllCards.json.zip | |
# Convert to CSV | |
jq -r 'to_entries[] | [.key, (.value | tostring ) ] | @csv' AllCards.json > AllCards.csv | |
# Load into postgres |
NewerOlder