title: Getting the final destination of a javascript redirect on a website
body: <p>I parse a website with python. They use a lot of redirects and they do them by calling javascript functions.</p>
  
  <p>So when I just use urllib to parse the site, it doesn't help me, because I can't find the destination url in the returned html code.</p>
  
  <p>Is there a way to access the DOM and call the correct javascript function from my python code?</p>
  
  <p>All I need is the url, where the redirect takes me.</p>