Alejandro Cremades commited on
Commit
7c52136
1 Parent(s): 57a2c7b

Bonus: better instructions on scripts

Browse files
list_scripts/1_download_mtgjson.sh CHANGED
@@ -1,9 +1,11 @@
 
 
 
 
 
1
  # Download mtgjson data and extract it on the `data` directory
2
  # Feel free to make the file available in any other way
3
 
4
- # Important: run this script from the parent directory
5
- # (the root directory in this repository)
6
-
7
  cd data
8
  wget "https://mtgjson.com/api/v5/AllPrintings.json.bz2"
9
  bunzip2 AllPrintings.json.bz2
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository):
3
+ #
4
+ # sh list_scripts/1_download_mtgjson.sh
5
+
6
  # Download mtgjson data and extract it on the `data` directory
7
  # Feel free to make the file available in any other way
8
 
 
 
 
9
  cd data
10
  wget "https://mtgjson.com/api/v5/AllPrintings.json.bz2"
11
  bunzip2 AllPrintings.json.bz2
list_scripts/2_per_set_json_files.py CHANGED
@@ -1,7 +1,11 @@
1
- ## Important: run this script from the parent directory
2
- ## (the root directory in this repository)
3
  #
4
- # python3 list_scripts/1.py
 
 
 
 
5
 
6
  # The Raw data is very large, so let's make JSON files for all relevant sets
7
  # Note: this can take a couple minutes to run
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
  #
4
+ # python3 list_scripts/2_per_set_json_files.py
5
+ #
6
+ # Then, run the newly generated bash script:
7
+ #
8
+ # sh list_scripts/3_separate_json_files_per_set.sh
9
 
10
  # The Raw data is very large, so let's make JSON files for all relevant sets
11
  # Note: this can take a couple minutes to run
list_scripts/4_compile_from_legal_sets.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import json
2
  import pandas as pd
3
 
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
+ #
4
+ # python3 list_scripts/4_compile_from_legal_sets.py
5
+
6
  import json
7
  import pandas as pd
8
 
list_scripts/5_remove_wrong_names.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import pandas as pd
2
 
3
  # Remove Japanese card names that are wrong on MTGJSON
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
+ #
4
+ # python3 list_scripts/5_remove_wrong_names.py
5
+
6
  import pandas as pd
7
 
8
  # Remove Japanese card names that are wrong on MTGJSON
list_scripts/6_find_remaining_japanese_names.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import pandas as pd
2
  import time
3
  from requests_html import HTMLSession
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
+ #
4
+ # python3 list_scripts/6_find_remaining_japanese_names.py
5
+
6
  import pandas as pd
7
  import time
8
  from requests_html import HTMLSession
list_scripts/7_remove_banned_cards.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import pandas as pd
2
 
3
  # Remove cards that are banned in the format
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
+ #
4
+ # python3 list_scripts/7_remove_banned_cards.py
5
+
6
  import pandas as pd
7
 
8
  # Remove cards that are banned in the format
list_scripts/8_add_other_fields.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import json
2
  import pandas as pd
3
 
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
+ #
4
+ # python3 list_scripts/8_add_other_fields.py
5
+
6
  import json
7
  import pandas as pd
8