[Python] Scraping homework notification with Google Classroom API

Discussão em 'Python' iniciado por Stack, Maio 31, 2025.

  1. Stack

    Stack Membro Participativo

    I'm currently developing a discord bot for my class server so that it could notify the class that have the same role. Currently the response is returning:

    [​IMG]

    I wonder if the response.json() couldn't comprehend the response above due to the first 3 lines. Which result in JSONDecodeError: Expecting value: line 1 column 1 (char 0) . Also how can I get the content in the 4th line and clean the unrelated characters.

    Continue reading...

Compartilhe esta Página