mirror of
https://github.com/Architeuthis-Flux/Jumperless.git
synced 2024-11-28 09:20:55 +01:00
40 lines
594 B
Python
40 lines
594 B
Python
from bs4 import BeautifulSoup
|
|
|
|
import asyncio
|
|
import websocket
|
|
|
|
import requests
|
|
import json
|
|
import serial
|
|
import time
|
|
|
|
import serial.tools.list_ports
|
|
|
|
ws = websocket.WebSocket()
|
|
ws.connect("wss://wokwi.com/api/ws/beta")
|
|
|
|
|
|
|
|
portSelected = 0
|
|
|
|
print("\n\r")
|
|
|
|
|
|
|
|
|
|
|
|
#the website URL
|
|
#url_link = "https://hexi.wokwi.com/build"
|
|
wss_link = "wss://wokwi.com/api/ws/beta"
|
|
|
|
ws.send("Authorization: Bearer wok_f2apXMezNPdtahxhoPFrpLLvqUIt6FmA54113212")
|
|
|
|
r = ws.recv()
|
|
|
|
#requests.put(url_link, "Authorization: Bearer wok_f2apXMezNPdtahxhoPFrpLLvqUIt6FmA54113212")
|
|
|
|
#r = requests.get(url_link)
|
|
|
|
print(r)
|
|
|