mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-08 22:42:32 -04:00
rudimentary link extraction and crawling
This commit is contained in:
parent
d8a962b29e
commit
4042f22497
3 changed files with 74 additions and 18 deletions
|
@ -62,6 +62,8 @@ class Behavior:
|
|||
self.logger.warn("no behavior to run on {}".format(self.url))
|
||||
|
||||
def is_finished(self):
|
||||
"""Asynchronously asks behavior if it is finished, and in the mean time
|
||||
returns the response from the previous such query."""
|
||||
msg_id = self.umbra_worker.send_to_chrome(method="Runtime.evaluate",
|
||||
suppress_logging=True, params={"expression":"umbraBehaviorFinished()"})
|
||||
self.waiting_result_msg_ids.append(msg_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue