node-csfd-api
Version:
ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)
1 lines • 919 B
Source Map (JSON)
{"version":3,"file":"search-creator.helper.cjs","names":["addProtocol"],"sources":["../../src/helpers/search-creator.helper.ts"],"sourcesContent":["import { HTMLElement } from 'node-html-parser';\nimport { addProtocol } from './global.helper';\n\nexport const getCreatorName = (el: HTMLElement): string => {\n return el.querySelector('.user-title').text.trim();\n};\n\nexport const getCreatorImage = (el: HTMLElement): string => {\n const image = el.querySelector('img').attributes.src;\n return addProtocol(image);\n};\n\nexport const getCreatorUrl = (el: HTMLElement): string => {\n return el.querySelector('.user-title a').attributes.href;\n};\n"],"mappings":";;AAGA,MAAa,kBAAkB,OAA4B;CACzD,OAAO,GAAG,cAAc,aAAa,CAAC,CAAC,KAAK,KAAK;AACnD;AAEA,MAAa,mBAAmB,OAA4B;CAC1D,MAAM,QAAQ,GAAG,cAAc,KAAK,CAAC,CAAC,WAAW;CACjD,OAAOA,sBAAAA,YAAY,KAAK;AAC1B;AAEA,MAAa,iBAAiB,OAA4B;CACxD,OAAO,GAAG,cAAc,eAAe,CAAC,CAAC,WAAW;AACtD"}