This commit is contained in:
2024-11-17 00:19:31 +03:30
parent c0c7342091
commit e930f8e054
2 changed files with 10 additions and 2 deletions

View File

@@ -3,6 +3,10 @@ import time
import requests
from bs4 import BeautifulSoup
from requests_doh import DNSOverHTTPSSession, add_dns_provider
add_dns_provider("shecan", "https://free.shecan.ir/dns-query")
token = os.getenv("EITAAYAR_TOKEN")
chat_id = os.getenv("CHAT_ID")
@@ -21,7 +25,9 @@ def send_message(text: str) -> dict:
def get_blockout_page() -> str:
blockout_link = 'https://qepd.co.ir/fa-IR/DouranPortal/6423'
return requests.get(blockout_link).text
session = DNSOverHTTPSSession("shecan")
return session.get(blockout_link).text
# return requests.get(blockout_link).text
def main() -> None: