Thank you for the quick reply!!!
Does that only work headless? When I insert that code into dump-links.pl I get this:
2020/09/26 14:01:35 Spawning $VAR1 = [
'/usr/bin/google-chrome',
'--remote-debugging-pipe',
'--enable-automation',
'--no-first-run',
'--mute-audio',
'--no-zygote',
'--no-sandbox',
'--safebrowsing-disable-auto-update',
'--disable-background-networking',
'--disable-breakpad',
'--disable-client-side-phishing-detection',
'--disable-component-update',
'--disable-hang-monitor',
'--disable-prompt-on-repost',
'--disable-sync',
'--disable-translate',
'--disable-web-resources',
'--disable-default-apps',
'--disable-infobars',
'--disable-popup-blocking',
'--disable-gpu',
'--disable-save-password-bubble',
'about:blank'
];
2020/09/26 14:01:35 Spawned child as 3455
[3455:3455:0926/140135.852054:ERROR:browser_main_loop.cc(1434)] Unable
+ to open X display.
2020/09/26 14:01:35 Sent message $VAR1 = '{"id":1,"method":"Target.get
+Targets","params":{}}';
$VAR1 = [
bless( {
'read_len' => 8192,
'reader' => '_sysread',
'cb_r' => sub { "DUMMY" },
'want_readready' => 1,
'close_on_read_eof' => 1,
'handle_closing' => undef,
'write_handle' => \*{'WWW::Mechanize::Chrome::$pare
+nt{...}'},
'want_writeready' => 1,
'read_handle' => \*{'WWW::Mechanize::Chrome::$paren
+t{...}'},
'want' => 9,
'on_read' => sub { "DUMMY" },
'write_eof' => 1,
'writequeue' => [
bless( [
'{"id":1,"method":"Targe
+t.getTargets","params":{}}',
8192,
undef,
undef,
undef,
0
], 'IO::Async::Stream::Wri
+ter' )
],
'write_len' => 8192,
'writeable' => 1,
'readqueue' => [],
'writer' => '_syswrite',
'cb_w' => sub { "DUMMY" },
'on_write_error' => sub { "DUMMY" },
'IO_Async_Notifier__loop' => bless( {
'os' => {},
'deferrals' =
+> [],
'sigattaches'
+ => {},
'timequeue' =
+> undef,
'pollevents'
+=> {
+ '7' => 16,
+ '6' => 12
+ },
'notifiers' =
+> {
+ '94094341331112' => $VAR1->[0]
+ },
'childwatches
+' => {},
'pollmask' =>
+ {
+ '6' => 4,
+ '7' => 1
+ },
'childmanager
+' => undef,
'threadwatche
+s' => {},
'iowatches' =
+> {
+ '6' => [
+ $VAR1->[0]{'write_handle'},
+ undef,
+ $VAR1->[0]{'cb_w'}
+ ],
+ '7' => [
+ $VAR1->[0]{'read_handle'},
+ $VAR1->[0]{'cb_r'}
+ ]
+ },
'poll' => und
+ef,
'old_timer' =
+> ''
}, 'IO::Async::
+Loop::Poll' ),
'readbuff' => ''
}, 'IO::Async::Stream' ),
'Broken pipe'
];
|