You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the data returned by the internal YouTube API is localized, e.g. the upload date string. If no Accept-Language header is present, YouTube will assume the language via the users's IP.
This leads to inconsistent output data and possible parsing errors if scrapetube is used in a non-English-speaking country.
That's why I would suggest setting the Accept-Language header to en. I am from Germany and can confirm that YouTube ouputs English date strings with that setting.
I am having exactly the same problem. And there should be a way to insert the location directly into the "get_channel" and "get_search" commands. That would make it much easier.
Some of the data returned by the internal YouTube API is localized, e.g. the upload date string. If no Accept-Language header is present, YouTube will assume the language via the users's IP.
This leads to inconsistent output data and possible parsing errors if scrapetube is used in a non-English-speaking country.
That's why I would suggest setting the Accept-Language header to
en
. I am from Germany and can confirm that YouTube ouputs English date strings with that setting.The text was updated successfully, but these errors were encountered: