From 58681bd7f3aeb1fd222a044e47c3da923d2fe039 Mon Sep 17 00:00:00 2001 From: zm-cttae <114668551+zm-cttae@users.noreply.github.com> Date: Sun, 22 Oct 2023 12:56:51 +0100 Subject: [PATCH 1/5] Adopt official REST API (#84) Replaces HTML parsing from #75 --- mpm.m | 40 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/mpm.m b/mpm.m index b2d9fd9..b9f6aa1 100644 --- a/mpm.m +++ b/mpm.m @@ -374,46 +374,22 @@ function listPackages(opts) end % query file exchange - baseUrl = 'http://www.mathworks.com/matlabcentral/fileexchange'; - html = webread(baseUrl, 'q', query); - - % extract all hrefs from '