Skip to content

[Error Page Not Found] occurs when search keys' length in utf-8 bytes exceeds 100 (>= 100) #23

Open
@AcGW-RErCotWd

Description

@AcGW-RErCotWd

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions