DrKain / scrape-youtube

A lightning fast package to scrape YouTube search results
MIT License
112 stars 30 forks source link

Language #26

Closed DragosDAS closed 3 years ago

DragosDAS commented 3 years ago

Is your feature request related to a problem? Please describe. Apparently the json I'm getting now is in Ukrainian and I don't know if I can change it to English

Describe the solution you'd like Changing the language according to preferences

Additional context

DrKain commented 3 years ago

As mentioned in the README you can specify a custom language. If it's getting Ukrainian results that's probably the location of the server running the bot.

youtube.search('Poets of the fall', {
    requestOptions: {
        headers: { 'Accept-Language': 'en-US' }
    }
});