MCPcopy
hub / github.com/sjdonado/idonthavespotify / getCheerioDoc

Function getCheerioDoc

src/utils/scraper.ts:4–6  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

2import { decode } from 'html-entities';
3
4export function getCheerioDoc(html: string) {
5 return cheerio.load(html);
6}
7
8export function metaTagContent(doc: cheerio.CheerioAPI, type: string, attr: string) {
9 const content = doc(`meta[${attr}='${type}']`).attr('content');

Callers 10

getTidalMetadataFunction · 0.90
getBandcampMetadataFunction · 0.90
getPandoraMetadataFunction · 0.90
getSpotifyMetadataFunction · 0.90
getDeezerMetadataFunction · 0.90
getSoundCloudMetadataFunction · 0.90
getAppleMusicMetadataFunction · 0.90
getSoundCloudLinkFunction · 0.90
getAppleMusicLinkFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected