Skip to content

Commit

Permalink
Keep only necessary headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokhoi authored and dipu-bd committed Sep 11, 2024
1 parent 68ac8f0 commit 2a69893
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions sources/zh/piaotian.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,10 @@
import urllib.parse

headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,"
"application/signed-exchange;v=b3;q=0.7",
"Accept-Encoding": "gzip, deflate, utf-8",
"Accept-Language": "en-US,en;q=0.9,de-CH;q=0.8,de;q=0.7",
"Cache-Control": "no-cache",
"Content-Type": "application/x-www-form-urlencoded",
"Origin": "https://www.piaotia.com",
"DNT": "1",
"Referer": "https://www.piaotia.com/modules/article/search.php",
"Connection": "keep-alive",
"Upgrade-Insecure-Requests": "1",
"Sec-Ch-Ua": '"Not_A Brand";v="8", "Chromium";v="120", "Opera GX";v="106"',
"Sec-Ch-Ua-Platform": "Windows",
"Sec-Fetch-Dest": "document",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-User": "?1",
}

logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 2a69893

Please sign in to comment.