We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
templates_url
1 parent 64702e4 commit bc7d139Copy full SHA for bc7d139
jamstack/jamdo/jamdo.py
@@ -5,6 +5,9 @@
5
import requests
6
from tqdm import tqdm
7
8
+templates_url = ("https://api.github.com/repos/jamstackpy/"
9
+ "jamstack-templates/git/trees/main?recursive=1")
10
+
11
12
def get_raw_url(file_path, url):
13
tmp_url = url.replace(
@@ -16,11 +19,9 @@ def get_raw_url(file_path, url):
16
19
17
20
18
21
def get_download_links(template):
- api = requests.get(
- "https://api.github.com/repos/jamstackpy/\
- jamstack-templates/git/trees/main?recursive=1").text
22
+ api = requests.get(templates_url).text
23
+ print(templates_url)
24
files = json.loads(api)
-
25
output = []
26
location = dict()
27
for (k, i) in enumerate(files['tree']):
0 commit comments