Python Requests: SENDING and READING Data from Websites in 4 Minutes

Поділитися
Вставка
  • Опубліковано 2 кві 2023
  • Reading and sending data to websites.
    As an example I'll be using discord to teach you how to send discord messages using the python requests library.
    Source code:
    import requests
    url = " / discord "
    data = {
    "content": "THIS MESSAGE WAS SENT WITH PYTHON"
    }
    header = {
    "authorization": "token here"
    }
    requests.post(url, data=data, headers=header)
  • Наука та технологія

КОМЕНТАРІ • 2

  • @miguelcunhakowalski1099
    @miguelcunhakowalski1099 7 місяців тому

    thanks man for the tutorial. it may only teach the most basics, but it still gave me an idea of how this stuff works. keep up the good content.

  • @wqterr
    @wqterr 3 місяці тому

    More discord py!!!