Add function to request cube csv from CubeTutor
This commit is contained in:
parent
636fff4c93
commit
1b4a7b79c9
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ def request_cube_csv(cube_name, cube_id):
|
|||
url = f'https://cubecobra.com/cube/download/csv/{cube_id}'
|
||||
url += '?primary=Color%20Category&secondary=Types-Multicolor&tertiary=CMC2'
|
||||
response = requests.get(url)
|
||||
open(f'cube_csvs/{cube_name}.csv', 'wb').write(response.content)
|
||||
|
||||
|
||||
def load_cube_from_csv(filename, tag_filter=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue