Open idevelopr opened 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 !
Returns an empty array of videos for the popular search queries
{ videos: [], didyoumean: '', token: 'EpIDEglpbm5hIGNvbGEahANTQlNDQVF0dllWQldka1p3WU9JSUJDMWM1YURGWlgzUXRZMmxOZ2dFTFJXWmtXREJ6UjFWQ1pVbUNBUXRHTlhKNlprTldVWE5IVURsTk9VWlJnZ0VMYlhwck9EQTFZalZGY20tQ0FRdENSa0phTmxGNVlsQTJPSUlCQzNOdVpqVnVXa05XWlV0bmdnRUxNa0', apikey: 'AIzaSyAJlqU8Q4STEHLGCilw' }