web scraping - Python filter URL from HTML -


you have guessed: i'm quite new :) learning python , proceeding well. after quite theory (learnpythonthehardway.com) , lots of googling , reading i'm trying topic first real world script. task read values web in case protected login form. managed requests post login data.

now problem login doesn't seem valid before js redirection happened. response of first site contains html beginning

<script>document.href='/file.php?...stuff...'</script> 

i tried search around regex replacements or other stuff couldn't find smart way filter out path/url part in there. if had manually page , see if works , session still persists afterwards.

as html/js filtering important later grab content part i'd love right i'm stuck.

hopefully can help!

thanks, frank


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -