title: how to deploy django app on cpanel and automate it with python selelnium webdriver
body: <p>I have developed and deployed the Django app for selenium automation on the Godaddy Cpanel server, which automatically opens the selenium chrome browser and extracts the data from a website. It works perfectly in the localhost server but when I deployed it into the Cpanel server it's not working/chromedriver not initializing. How should I configure Cpanel to run python selenium driver on page load or button click.</p>
  <pre><code>def getrate(request):
     if request.user.is_authenticated:
         if request.method == &quot;GET&quot; :
              from selenium import webdriver
              from webdriver_manager.chrome import ChromeDriverManager
              driver = webdriver.Chrome(ChromeDriverManager().install())
              driver.get(&quot;https://www.nytimes.com/international/&quot;))
  </code></pre>