note
Aldebaran
<i>Q1) What do I need to do to get this script working?</i>
<p>I've realized looking at this [WWW::Mechanize] how old in internet years this is now (now is 18-04-2020). I couldn't figure out just when it hit the scene, but I did find a treatment of it at [http://perladvent.org/2002/16th/|this link from 2002.] They have the similar treatment of imdb, but the site has changed completely since then. I was furthered impressed by its burgeoning age by this:</p>
<c>my %known_agents = (
'Windows IE 6' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)',</c>
<p>Over the last several days, I've read up about the [https://en.wikipedia.org/wiki/Browser_wars|Browser_wars,] and I guess I was there for it, but just not really aware that chrome had displaced IE as the most popular browser. Now I see that chrome and firefox are leading the field, so lucky for us perlers that we have some tools so as to not have to toss our hands up and say that we can't deal with javascript-enabled sites, which seems to be a lot of them as I was poking around again. The imdb site was javascript-enabled, so the script in the original post is poorly suited to that module, at least now. </p>
<i>Q4) Doesn't "scraping" connote going after an entire class of files like images, or have I done it here without even trying?</i>
<p>I think one obviates this by logging in:</p>
<c># get login data for using Config::Tiny
use Config::Tiny;
my $ini_path = qw( /home/hogan/Documents/html_template_data/3.values.ini );
say "ini path is $ini_path";
my $sub_hash = "perlmonks";
my $Config = Config::Tiny->new;
$Config = Config::Tiny->read( $ini_path, 'utf8' );
my $username = $Config->{$sub_hash}{'username'};
my $password = $Config->{$sub_hash}{'password'};
say "values are $username $password ";</c>
<p>If the site doesn't like what your script is doing when you're signed in, they can let you know. I really would like to work up this example, but with WMC instead. My partner and I will watch Netflix, HBO, Amazon, and we're always trying to match the actors up to where we've seen them last, so I will get on my android and make the actual keystrokes on other occasions. </p>
<p>So I would like to have something I could work up to launch on android, but with WMC, which should have the advantages of being on a native platform.</p>
11115421
11115421