Skip to content

Instantly share code, notes, and snippets.

View WilliamNT's full-sized avatar
👨‍💻
Coding

WilliamNT WilliamNT

👨‍💻
Coding
  • Budapest, Hungary
  • 21:13 (UTC +02:00)
View GitHub Profile
@WilliamNT
WilliamNT / telexhu_exchange_api.txt
Created August 16, 2022 13:01
Telex.hu Árfolyam API
Ezt csak így lazán itt hagyom.
https://telex.hu/api/exchangerate
import requests
from bs4 import BeautifulSoup
URL = input("Lightshot URL: ")
PAGE = requests.get(URL, headers={'User-Agent': 'Chrome'})
soup = BeautifulSoup(PAGE.content, "html.parser")
result = soup.find(id="screenshot-image").get("src")
with open(f"IMG_.png", "wb") as f:
f.write(requests.get(result).content)
import socket
import time
class Client():
def __init__(self, delay: None, address: None):
if delay < 0.5:
delay = 0.5
self.delay = delay
if not address: