Skip to content

Commit cf7a060

Browse files
committed
update as per the website; updated url; solved Issue with Login #4
1 parent b331f5e commit cf7a060

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

duneanalytics/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__title__ = 'duneanalytics'
33
__description__ = 'Unofficial library for Dune Analytics.'
44
__url__ = 'https://github.com/itzmestar/duneanalytics'
5-
__version__ = '1.0.4'
5+
__version__ = '1.1.0'
66
__build__ = 0x010001
77
__author__ = 'Tarique Anwer'
88
__author_email__ = '[email protected]'

duneanalytics/duneanalytics.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# --------- Constants --------- #
77

8-
BASE_URL = "https://duneanalytics.com"
8+
BASE_URL = "https://dune.xyz"
99
GRAPH_URL = 'https://core-hsr.duneanalytics.com/v1/graphql'
1010

1111
# --------- Constants --------- #
@@ -30,13 +30,16 @@ def __init__(self, username, password):
3030
self.password = password
3131
self.session = Session()
3232
headers = {
33-
'origin': BASE_URL,
34-
'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="90", "Google Chrome";v="90"',
33+
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,'
34+
'image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
35+
'dnt': '1',
36+
'sec-ch-ua': '"Google Chrome";v="95", "Chromium";v="95", ";Not A Brand";v="99"',
3537
'sec-ch-ua-mobile': '?0',
36-
'sec-fetch-dest': 'empty',
38+
'sec-fetch-dest': 'document',
3739
'sec-fetch-mode': 'cors',
3840
'sec-fetch-site': 'same-site',
39-
'dnt': '1',
41+
'origin': BASE_URL,
42+
'upgrade-insecure-requests': '1'
4043
}
4144
self.session.headers.update(headers)
4245

0 commit comments

Comments
 (0)