<%*
let url = 'https://www.tianqi.com/beijing/'
let res = await request({url: url,method: "GET"});
res = res.replace(/\s/g,'')
r=/<ddclass="weather">[\s\S]*?<\/dd>/g
let data = r.exec(res)[0]
r = /<span><b>(.*?)<\/b>(.*?)<\/span>/g
data = r.exec(data)
let weather='北京'+data[2]+data[1]
-%>
<% weather %>
let text = `<dd class="weather">...`
let 当前温度 = /<p class="now"><b>(\d+)<\/b><i>℃<\/i><\/p>/.exec(text)[1]
let [,天气, 温度范围] = /<span><b>(.*?)<\/b>(.*?)<\/span>/.exec(text)
let [,湿度,风向,紫外线] = /<dd class="shidu"><b>(.*?)<\/b><b>(.*?)<\/b><b>(.*?)<\/b><\/dd>/.exec(text)
let [,空气质量,PM,日出,日落] = /<dd class="kongqi"><h5 style="background-color:#79b800;">(.*?)<\/h5><h6>(.*?)<\/h6><span>(.*?)<br>(.*?)<\/span><\/dd>/.exec(text)
<%*
let url = 'https://www.tianqi.com/beijing/'
let res = await request({url: url,method: "GET"});
res = res.replace(/\s/g,'')
r=/<ddclass="weather">[\s\S]*?<\/dd>/g
let data = r.exec(res)[0]
r = /<span><b>(.*?)<\/b>(.*?)<\/span>/g
data = r.exec(data)
let weather='北京'+data[2]+data[1]
-%>
<% weather %>
let url = 'https://www.tianqi.com/beijing/'
let res = await request({url: url,method: "GET"});
res = res.replace(/\n/g,'')
let 当前温度 = /<p class="now"><b>(\d+)<\/b><i>℃<\/i><\/p>/.exec(res)[1]
let [,天气, 温度范围] = /<span><b>(.*?)<\/b>(.*?)<\/span>/.exec(res)
let [,湿度,风向,紫外线] = /<dd class="shidu"><b>(.*?)<\/b><b>(.*?)<\/b><b>(.*?)<\/b><\/dd>/.exec(res)
let [,空气质量,PM,日出,日落] = /<dd class="kongqi" ><h5 style="background-color:#[0-9a-z]{6};">(.*?)<\/h5><h6>(.*?)<\/h6><span>(.*?)<br \/>(.*?)<\/span><\/dd>/.exec(res)