Spaces:
Sleeping
Sleeping
Update other_function.py
Browse files- other_function.py +6 -6
other_function.py
CHANGED
@@ -107,12 +107,12 @@ def get_weather(city):
|
|
107 |
def get_rates():
|
108 |
|
109 |
headers = {
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
|
117 |
# URL for fetching mandi prices for all states in India
|
118 |
url = 'https://www.kisandeals.com/mandiprices/ALL/ALL/ALL'
|
|
|
107 |
def get_rates():
|
108 |
|
109 |
headers = {
|
110 |
+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36',
|
111 |
+
'Accept-Language': 'en-IN,en;q=0.9',
|
112 |
+
'Referer': 'https://www.google.co.in/',
|
113 |
+
'Connection': 'keep-alive',
|
114 |
+
}
|
115 |
+
|
116 |
|
117 |
# URL for fetching mandi prices for all states in India
|
118 |
url = 'https://www.kisandeals.com/mandiprices/ALL/ALL/ALL'
|