[Python] Printing Contents of HTML But Preventing Formatting

Discussão em 'Python' iniciado por Stack, Setembro 25, 2024.

  1. Stack

    Stack Membro Participativo

    How do I get it to print everything without formatting? I want to scrape codewars.com/users/username for data about a particular user, but I can't do it without knowing how the data I want is represented without being formatted.

    On codewars using python, when I do response = requests.get(url), soup = BeautifulSoup(response, 'html.parser', then print(soup), it prints me the formatted contents, not all of the contents. For extra context I'm coding and executing on an iPhone.

    What's supposed to happen What appears when I try and print, makes it so I can't scroll and even when I can it just shows it like it does on the actual website rather than the contents itself

    Continue reading...

Compartilhe esta Página