title: How to login to indeed with Python?
body: <p>I am trying to loggin to my Indeed account using python in order to automate my work. I want to access all the candidates that have apply to my job offer. </p>
  
  <p>However I am stuck in the development of this program. </p>
  
  <p>In fact Indeed has a captcha validation therefore I am login to indeed on my browser and I get the cookies of the session on Python. However I face again a new challenge is that Java needs to be enable. </p>
  
  <p>That's what I tried: </p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  session = requests.Session()
  
  response = session.get('https://www.indeed.com/')
  cookies = session.cookies.get_dict()
  
  url = 'https://employers.indeed.com/m#dashboard'
  page = requests.get(url, cookies=cookies).content
  soup = BeautifulSoup(page, 'lxml')
  
  print(soup)
  </code></pre>
  
  <p>And I get this: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;&lt;head&gt;&lt;meta content="text/html;charset=utf-8" http-equiv="Content-Type"/&gt;&lt;meta content="noindex" name="robots"/&gt;&lt;/head&gt;&lt;body&gt;&lt;script type="text/javascript"&gt;
  var i, t, p, L=location.href, ps=L.split(/[&amp;?]/);
  for (i=0; i&lt;ps.length; i++) {
    if (ps[i].indexOf("token=") == 0) {
      t = ps[i].substring(6);
    }
  }
  if(!t){
    i=L.indexOf('#');
    t=encodeURIComponent(i&lt;0?'':L.substring(i+1));
  }
  p=location.pathname.substring(1, 2);
  var d=encodeURIComponent(p+'?token='+t);
  window.location='/account/login?dest='+d;
  
  &lt;/script&gt;&lt;noscript&gt;JavaScript is required. Please enable it in your web browser.&lt;/noscript&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>