Update dl.py
Browse files
dl.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import requests as rq
|
2 |
import json
|
3 |
import os
|
4 |
-
|
|
|
5 |
opt=rq.get("https://civitai.com/api/v1/model-versions/by-hash/F32CC1F1")
|
6 |
j:dict=opt.json()
|
7 |
opt =rq.get(j.get("files")[0].get("downloadUrl")+"?token="+tkn)
|
|
|
1 |
import requests as rq
|
2 |
import json
|
3 |
import os
|
4 |
+
import sys
|
5 |
+
tkn=sys.argv[1]
|
6 |
opt=rq.get("https://civitai.com/api/v1/model-versions/by-hash/F32CC1F1")
|
7 |
j:dict=opt.json()
|
8 |
opt =rq.get(j.get("files")[0].get("downloadUrl")+"?token="+tkn)
|