Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Lucksi
GitHub Repository: Lucksi/Mr.Holmes
Path: blob/master/Core/Support/Headers.py
1071 views
1
# ORIGINAL CREATOR: Luca Garofalo (Lucksi)
2
# AUTHOR: Luca Garofalo (Lucksi)
3
# Copyright (C) 2023 Lucksi <[email protected]>
4
# License: GNU General Public License v3.
5
6
from Core.Support import Useragent
7
8
agent = Useragent.Select.agent
9
10
class Get:
11
12
@staticmethod
13
def classic():
14
headers = {
15
'User-Agent':'{}'.format(agent).replace("\n","")
16
}
17
return headers
18
19
@staticmethod
20
def Twitter():
21
headers = {
22
"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
23
"Accept-Encoding":"gzip, deflate, br",
24
"Accept-Language":"en-US,en;q=0.5",
25
"Cache-Control":"max-age=0",
26
"Connection":"keep-alive",
27
"Host":"nitter.net",
28
"Sec-Fetch-Dest":"document",
29
"Sec-Fetch-Mode":"navigate",
30
"Sec-Fetch-Site":"same-origin",
31
"Upgrade-Insecure-Requests":"1",
32
'User-Agent':'{}'.format(agent).replace("\n","")
33
}
34
return headers
35