You've already forked BuyeeScraper
updated headers
This commit is contained in:
7
bot.py
7
bot.py
@@ -34,7 +34,12 @@ if not config.get("deepl_key") or not config.get("discord_bot_token"):
|
||||
intents = nextcord.Intents.default()
|
||||
bot = commands.Bot(command_prefix=".", intents=intents)
|
||||
headers = {
|
||||
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
|
||||
"(KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
||||
"Accept-Language": "en-US,en;q=0.9",
|
||||
"Accept": "text/html,application/xhtml+xml",
|
||||
"Connection": "keep-alive"
|
||||
}
|
||||
deepl_headers = {'Authorization': f'DeepL-Auth-Key {config["deepl_key"]}', 'User-Agent': 'YahooScraper/1.0.0'}
|
||||
search_term = 'けものフレンズ'
|
||||
ping_terms: dict = config["ping_terms"]
|
||||
|
||||
Reference in New Issue
Block a user