jmcarp / robobrowser

BSD 3-Clause "New" or "Revised" License
3.7k stars 337 forks source link

Refresh page #91

Open MurphyPone opened 5 years ago

MurphyPone commented 5 years ago

Is it possible to force the RoboBrowser instance to reload a page?

In my use case, I'm waiting for a download to finish before scanning for hrefs to follow, but the parsed() method doesn't appear to update as the page loads – e.g. it's forever stuck at 0% downloading even though the expected wait time is 30s. If I refresh the page mid-download (manually), it doesn't interrupt the download progress. My guess is that parsed() references a snapshot of sorts taken once when a page loads, and further invocations reference that snapshot instead of the live HTML?

I've tried invoking the open() method again, but that seems to create a new "window" of sorts, losing all the download progress...

Thanks!