Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit c834ecc

Browse files
committed
Fix typo in reflist API url builder & regenerate
Forgot to include release
1 parent 5beae5e commit c834ecc

File tree

6 files changed

+548
-548
lines changed

6 files changed

+548
-548
lines changed

JSONout/R2018b/_url_cache.JSON

Lines changed: 96 additions & 96 deletions
Large diffs are not rendered by default.

JSONout/R2019a/_url_cache.JSON

Lines changed: 108 additions & 108 deletions
Large diffs are not rendered by default.

JSONout/R2019b/_url_cache.JSON

Lines changed: 110 additions & 110 deletions
Large diffs are not rendered by default.

JSONout/R2020a/_url_cache.JSON

Lines changed: 114 additions & 114 deletions
Large diffs are not rendered by default.

JSONout/R2020b/_url_cache.JSON

Lines changed: 117 additions & 117 deletions
Large diffs are not rendered by default.

src/MATLABfcnscrape.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def help_url_builder(help_location: str, release: str) -> str:
4242
# Newer MATLAB releases have an API endpoint that provides JSON
4343
params = {"type": "function", "listtype": "alpha", "product": help_location}
4444
suffix = urlencode(params)
45-
return f"{REFLIST_URL_PREFIX}/{suffix}"
45+
return f"{REFLIST_URL_PREFIX}/{release}?{suffix}"
4646

4747

4848
def scrape_toolbox_urls(release: str) -> None:
@@ -190,8 +190,8 @@ def _scrape_doc_page_html(url: str, release: str) -> t.List[str]:
190190

191191
def _scrape_doc_page_json(url: str) -> t.List[str]:
192192
""""""
193-
r = httpx.get(url, timeout=2)
194-
raw_function_list = r.json
193+
r = httpx.get(url, timeout=10)
194+
raw_function_list = r.json()
195195

196196
all_functions = []
197197
for category in raw_function_list["category"]["grouped-leaf-items"]:

0 commit comments

Comments
 (0)