Neurolingua commited on
Commit
530bd54
1 Parent(s): 2c66a93

Update other_function.py

Browse files
Files changed (1) hide show
  1. other_function.py +6 -4
other_function.py CHANGED
@@ -104,13 +104,15 @@ def get_weather(city):
104
  celcius=str(round((int(degree) - 32)* 5/9,1))+temperature[-2]+'C'
105
  return (celcius)
106
 
107
- headers = {
108
- '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'
109
- }
110
  def get_rates():
 
111
  headers = {
112
- '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'
 
 
 
113
  }
 
114
 
115
  # URL for fetching mandi prices for all states in India
116
  url = 'https://www.kisandeals.com/mandiprices/ALL/ALL/ALL'
 
104
  celcius=str(round((int(degree) - 32)* 5/9,1))+temperature[-2]+'C'
105
  return (celcius)
106
 
 
 
 
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-US,en;q=0.9',
112
+ 'Referer': 'https://www.google.com',
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'