gazpacho icon indicating copy to clipboard operation
gazpacho copied to clipboard

Can't parse some HTML entries

Open NicKoehler opened this issue 2 years ago • 0 comments

Describe the bug

Can't parse some entries, there are 40 entries for every page, but some are not being parsed correctly.

Steps to reproduce the issue

from gazpacho import get, Soup

for i in range(1, 15):
    link = f'https://1337x.to/category-search/aladdin/Movies/{i}/'
    html = get(link)
    soup = Soup(html)
    body = soup.find("tbody")

    # extracting all the entries in the body,
    # there are 40 entries for every page, the last one can have less,
    entries = body.find("tr", mode='all')[::-1]

    # but for some pages it can't retrives all the entries from some reason
    print(f'{len(entries)} entries -> {link}')

Expected behavior

See 40 entries for every page

Environment:

Arch Linux - 5.13.10-arch1-1 Python - 3.9.6 Gazpacho - 1.1

NicKoehler avatar Aug 18 '21 17:08 NicKoehler