valerebron / usetube

search & get datas from youtube no google account needed
GNU General Public License v3.0
48 stars 18 forks source link

Is this working? #28

Open dalisalvador opened 1 year ago

dalisalvador commented 1 year ago

Seems that nothing is working

valerebron commented 1 year ago

Yes indeed, youtube seems to have change is HTML code. This is the main problem of web crawlers, it's dependent to its target code and need to be maintained. For now I have now time to maintain it.

However you can try to debug it, it should be easy.

Uncomment this line of code : https://github.com/valerebron/usetube/blob/master/src/helpers/getData.ts#L52

and play with npm run test

It will generate a raw.json containing current youtbe html.

cheers !

towfiqi commented 1 year ago

Use any of these 2 instead: https://www.npmjs.com/package/scrape-youtube https://www.npmjs.com/package/youtubei