title: Url requests not working while the flask app is hosted
body: <p>I have a flask web app running a just-dial scraper code, In my code, I have to request multiple pages of the Justdial site to use it in the bs4 module to extract the data and fill it in the excel sheet. I use <code>requests.Session()</code> to do the process.</p>
  <pre><code>            session = requests.Session()
              session.headers.update({&quot;User-Agent&quot;: &quot;Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36&quot;})
              url=f&quot;{entry}/page-{page_number}&quot;
              session.verify = False
              r = session.get(url).text
  </code></pre>
  <p>Then this &quot;r&quot; is passed into the <code>bs4</code> module and the extraction process takes place.</p>
  <p>Whenever I run this code in the local host my program works fine, the data is getting extracted and the values are getting stored in the excel file. But when I host this as webapp in <code>heroku</code> and try the same process in <code>heroku</code>, I am not getting the desired output, there are no errors shown in <code>except</code> and <code>try</code> as well. Also I am getting empty excel file as output.</p>
  <p>I tried using <code>Urllib</code>, <code>requests.get()</code> and also <code>requests.get(url, verify-False)</code> but the same problem exists.</p>
  <p>This warning pops up while i run the program in localhost</p>
  <blockquote>
  <p>/home/disciple/.local/lib/python3.8/site-packages/urllib3/connectionpool.py:846: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: <a href="https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings" rel="nofollow noreferrer">https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings</a>
  warnings.warn((</p>
  </blockquote>