Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@bochilteam/scraper/lib/esm/primbons/artinama.js
1126 views
1
import got from 'got';
2
export default async function artinama(nama) {
3
var _a, _b, _c;
4
const data = await got(`https://www.primbon.com/arti_nama.php?nama1=${nama}&proses=+Submit%21+`).text();
5
const results = (_c = (_b = (_a = data
6
.split('<h1>ARTI NAMA</h1><br>')[1]) === null || _a === void 0 ? void 0 : _a.split('<TABLE>')[0]) === null || _b === void 0 ? void 0 : _b.replace(/<(\/)?(h1|br|i|b)>/gim, '')) === null || _c === void 0 ? void 0 : _c.trim();
7
return results || '';
8
}
9
//# sourceMappingURL=artinama.js.map
10