-
-
29 Aug 2021 10:13:39 UTC
- Distribution: WWW-Mechanize-Chrome
- Module version: 0.68
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (230 / 3 / 3)
- Kwalitee
Bus factor: 1- 14.21% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (193.03KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Algorithm::Loops
- Carp
- Exporter
- File::Basename
- File::Spec
- Filter::signatures
- Future
- Future::HTTP
- HTML::Selector::XPath
- HTTP::Cookies
- HTTP::Headers
- HTTP::Response
- IO::Async
- IO::Socket::INET
- IPC::Open3
- Imager
- Imager::File::PNG
- JSON
- Log::Log4perl
- MIME::Base64
- Moo
- Net::Async::WebSocket::Client
- Object::Import
- POSIX
- PerlX::Maybe
- Scalar::Util
- Storable
- Try::Tiny
- URI
- URI::file
- URI::ws
- WWW::Mechanize::Link
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- SYNOPSIS
- DESCRIPTION
- Reusing an existing connection
- SEE ALSO
- REPOSITORY
- AUTHOR
- COPYRIGHT (c)
- LICENSE
NAME
HTTP::Cookies::ChromeDevTools - retrieve cookies from a live Chrome instance
SYNOPSIS
use HTTP::Cookies::ChromeDevTools; my $cookie_jar = HTTP::Cookies::ChromeDevTools->new(); # use just like HTTP::Cookies
DESCRIPTION
This package overrides the load() and save() methods of HTTP::Cookies so it can work with a live Chrome instance.
Reusing an existing connection
If you already have an existing connection to Chrome that you want to reuse, just pass the Chrome::DevToolsProtocol instance to the cookie jar constructor in the
driver
parameter:my $cookie_jar = HTTP::Cookies::ChromeDevTools->new( driver => $driver );
->load( $file, %options )
$jar->load( undef, driver => $driver );
Loads the cookies from the Chrome instance. Passing in a filename to load cookies from is currently unsupported.
->load_jar( $jar, %options )
$jar->load( $jar, replace => 1;
Imports the cookies from another cookie jar into Chrome.
replace will clear out the cookie jar before loading the fresh cookies.
SEE ALSO
HTTP::Cookies - the interface used
HTTP::Cookies::Chrome - offline access to Chrome cookies
REPOSITORY
The public repository of this module is http://github.com/Corion/www-mechanize-chrome.
AUTHOR
Max Maischein
corion@cpan.org
COPYRIGHT (c)
Copyright 2009-2021 by Max Maischein
corion@cpan.org
.LICENSE
This module is released under the same terms as Perl itself.
Module Install Instructions
To install WWW::Mechanize::Chrome, copy and paste the appropriate command in to your terminal.
cpanm WWW::Mechanize::Chrome
perl -MCPAN -e shell install WWW::Mechanize::Chrome
For more information on module installation, please visit the detailed CPAN module installation guide.