Purpose
Retrieve all unique links to Matthews Asia active ETF fund pages from the site's Explore page.
When to Use
Use when the caller needs the complete set of active ETF detail-page URLs currently linked from the Matthews Asia Explore page.
Workflow
- Navigate directly to
https://www.matthewsasia.com/active-etfs/explore/and wait for DOM content to load; allow a short render delay if needed. - In the same page evaluation, return the unique ETF links:
(() => {
const links = Array.from(document.querySelectorAll('a[href^="/funds/etfs/"]'))
.map((a) => a.getAttribute("href"))
.filter(Boolean);
return [...new Set(links)];
})();The result is an array of unique site-relative URLs such as /funds/etfs/{fund-slug}/.
Site-Specific Gotchas
- The Explore page is the direct collection URL; do not begin at the homepage or use unrelated fund, mutual-fund, or external ETF-provider pages.
- Filter anchors by the
/funds/etfs/path so navigation links and mutual-fund links are excluded. - Preserve the returned site-relative hrefs unless absolute URLs are specifically requested; resolve them against
https://www.matthewsasia.comwhen needed. - A brief post-load wait may be necessary if the page populates its fund cards after
domcontentloaded.
Expected Output
A deduplicated array of strings containing every href on the Explore page whose path begins with /funds/etfs/.