Open
Description
While using the code, an error raised in Videos._scrapLiVideos(*) showing that no LiVideo is Found, this is because the keywords I used had a combined length in bytes (utf-8) >= 100, which cause the website to raise an [Error Page Not Found]
The following code is used to measure length of my keywords (could be in different languages) (where s is the one string concatenated from all keywords by whitespace):
s = ' '.join(self.keywords)
def utf8len(s):
return len(s.encode('utf-8'))
It seems to me that the keywords join together (including whitespace) needs to have an utf-8 length strictly smaller than 100 (utf8len<100)
Metadata
Metadata
Assignees
Labels
No labels