Skip to content

Commit

Permalink
fixed Internal Server Error
Browse files Browse the repository at this point in the history
  • Loading branch information
pavi committed Oct 5, 2024
1 parent 8943d4f commit 1c98534
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
33 changes: 19 additions & 14 deletions geminikit/headers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
header_img_up = {

"X-Same-Domain": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36",
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
Expand Down Expand Up @@ -36,28 +35,34 @@


header_main = {
'authority': 'gemini.google.com',
'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-language': 'en-US,en;q=0.9',
'sec-ch-ua': '"Not/A)Brand";v="99", "Google Chrome";v="115", "Chromium";v="115"',
'sec-ch-ua-arch': '"x86"',
'cache-control': 'max-age=0',
'priority': 'u=0, i',
'sec-ch-ua': '"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"',
'sec-ch-ua-arch': '""',
'sec-ch-ua-bitness': '"64"',
'sec-ch-ua-full-version': '"115.0.5790.102"',
'sec-ch-ua-full-version-list': '"Not/A)Brand";v="99.0.0.0", "Google Chrome";v="115.0.5790.102", "Chromium";v="115.0.5790.102"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-model': '""',
'sec-ch-ua-platform': '"Linux"',
'sec-ch-ua-platform-version': '"6.3.0"',
'sec-ch-ua-form-factors': '',
'sec-ch-ua-full-version': '"129.0.6668.58"',
'sec-ch-ua-full-version-list': '"Google Chrome";v="129.0.6668.58", "Not=A?Brand";v="8.0.0.0", "Chromium";v="129.0.6668.58"',
'sec-ch-ua-mobile': '?1',
'sec-ch-ua-model': '"Nexus 5"',
'sec-ch-ua-platform': '"Android"',
'sec-ch-ua-platform-version': '"6.0"',
'sec-ch-ua-wow64': '?0',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'none',
'sec-fetch-site': 'same-origin',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Mobile Safari/537.36',
'x-browser-channel': 'stable',
'x-browser-copyright': 'Copyright 2024 Google LLC. All rights reserved.',
'x-browser-validation': 'vrdrOb79TZVKQF8a3V5ixRDvbQE=',
'x-browser-year': '2024',
'x-client-data': 'CIy2yQEIpLbJAQipncoBCLOKywEIkqHLAQiHoM0BCI2nzQEIwbbOAQj6wM4BCN3CzgEIy8TOAQiNxs4BCJLGzgEYnLHOARjDvc4B',
}



header_gen = {
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
'Dnt': '1',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def get_long_description():
#
setup(
name="geminikit",
version="1.2.0",
version="1.2.1",
author="paviththanan",
author_email="rkpavi06@gmail.com",
description="The python package that returns Response of Google Gemini through Cookies.",
Expand Down

0 comments on commit 1c98534

Please sign in to comment.