Categories > Coding > Python >

How to run it?

Posts: 252

Threads: 51

Joined: Jun, 2020

Reputation: 0

Posted

How to run my code? can you say pls

import requests
import socket
webhook_url = 'mywebhook'
message = socket.gethostbyname(socket.gethostname())
requests.post(webhook_url, json={'content': message})
  • 0

Why u looking here lol

Jisll

UI Maker

Posts: 29

Threads: 0

Joined: Feb, 2021

Reputation: 5

Replied

python3 yourfilename.py

but make sure you have installed requests and socket module.

  • 0

https://cdn.discordapp.com/attachments/927291995947413515/1092728981884780594/jisll.png

Posts: 252

Threads: 51

Joined: Jun, 2020

Reputation: 0

Replied

@65866ty

  • 0

Why u looking here lol

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )