MCPcopy Create free account
hub / github.com/anyehttp/quantumult-x / parseAppBodyPrice

Function parseAppBodyPrice

task/AppStore.js:51–56  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

49
50// 解析 app 本体价格
51function parseAppBodyPrice(html) {
52 const priceElement = html.match(/<li class="inline-list__item inline-list__item--bulleted app-header__list__item--price">([\s\S]*?)<\/li>/);
53 const price = priceElement ? priceElement[1].trim() : null;
54 console.log(`解析本体价格: ${price}`);
55 return price;
56}
57
58// 解析 app 内购项目
59function parseAppInAppPurchases(html) {

Callers 1

fetchAppDataFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected