title: Selenium - Wait for the webpage to request external URL
body: <p>I am basically trying to get a link to a m3u8 file. When the page first loads it requests the m3u8 file with a secret token that is changed everyday. The file is downloaded when the page if fully loaded. I can see it using chrome developer tools at network tab. Since this token is generated dynamically I need to let the website request this file first, then give me the URL to the file including the token (something like <a href="http://secret-website.com/file?token=342782g1bud1" rel="nofollow noreferrer">http://secret-website.com/file?token=342782g1bud1</a>).</p>
  
  <p>I have never used selenium, so I am wondering how I can do this if possible. I need to do it programmatically using python or c#. </p>