[Python] Way to Get Information from Website With Discord Bot

Discussão em 'Python' iniciado por Stack, Fevereiro 12, 2025.

  1. Stack

    Stack Membro Participativo

    i'm working on coding a discord bot using python and i'm trying to figure out a way to access a website via a bot command.

    in theory, i'll have a command link the bot to the site, grab information, and then put that specific information in the chat.

    this is what i'm trying to use: https://api.quotable.io/random, and have it be like !quote and then the bot will grab the 'content' and the 'author' bits of it.

    is there a way to do this? i can't find anything written in the documentation online.

    apologies if this is confusing, i'm not 100% sure what i'm doing.

    Continue reading...

Compartilhe esta Página