This commit is contained in:
yasir 2023-01-15 16:13:32 +07:00
parent c29e21101e
commit 27be8dd952

View file

@ -7,7 +7,6 @@ import telegraph
import logging
from aiohttp import ClientSession
from misskaty import BOT_USERNAME
from ..plugins.web_scraper import headers
from bs4 import BeautifulSoup as bs4
LOGGER = logging.getLogger(__name__)
@ -17,7 +16,7 @@ if telegraph.get_access_token() == None:
token_ph = telegraph.create_account(short_name=BOT_USERNAME)
LOGGER.info(f"kuso_utils: Create TGH Account ..")
headers = {"Accept": "*/*", "User-Agent": headers}
headers = {"Accept": "*/*", "User-Agent": {"User-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.19582"}}
async def kusonimeBypass(url: str, slug=None):