mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-08 14:32:23 -04:00
Merge branch 'master' into qa
* master: fix problem where each hashtag visited causes a page load if page url redirects new test exposing problem where each hashtag visited causes a page load, if page redirects
This commit is contained in:
commit
9422fb6a26
6 changed files with 82 additions and 4 deletions
|
@ -454,7 +454,7 @@ class Browser:
|
|||
else:
|
||||
outlinks = self.extract_outlinks()
|
||||
if not skip_visit_hashtags:
|
||||
self.visit_hashtags(page_url, hashtags, outlinks)
|
||||
self.visit_hashtags(self.url(), hashtags, outlinks)
|
||||
final_page_url = self.url()
|
||||
return final_page_url, outlinks
|
||||
except brozzler.ReachedLimit:
|
||||
|
@ -599,8 +599,7 @@ class Browser:
|
|||
|
||||
def try_login(self, username, password, timeout=300):
|
||||
try_login_js = brozzler.jinja2_environment().get_template(
|
||||
'try-login.js.j2').render(
|
||||
username=username, password=password)
|
||||
'try-login.js.j2').render(username=username, password=password)
|
||||
|
||||
self.websock_thread.got_page_load_event = None
|
||||
self.send_to_chrome(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue