/usr/share/doc/python-twill/html/examples.html is in python-twill 0.9-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | <?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.3.7: http://docutils.sourceforge.net/" />
<title>twill Examples</title>
<link rel="stylesheet" href="default.css" type="text/css" />
</head>
<body>
<div class="document" id="twill-examples">
<h1 class="title">twill Examples</h1>
<div class="section" id="example-logging-into-slashdot">
<h1><a name="example-logging-into-slashdot">Example: logging into slashdot.</a></h1>
<p>This script logs you into slashdot (assuming you have an account!).</p>
<pre class="literal-block">
setlocal username <your username>
setlocal password <your password>
go http://www.slashdot.org/
formvalue 1 unickname $username
formvalue 1 upasswd $password
submit
code 200 # make sure form submission is correct!
</pre>
</div>
<div class="section" id="example-searching-google-and-going-to-the-first-hit">
<h1><a name="example-searching-google-and-going-to-the-first-hit">Example: searching Google and going to the first hit</a></h1>
<p><em>Please be aware that automated searching of Google violates their
Terms of Service. This is for example purposes only!</em></p>
<pre class="literal-block">
setlocal query "twill Python"
go http://www.google.com/
fv 1 q $query
submit btnI # use the "I'm feeling lucky" button
show
</pre>
</div>
</div>
</body>
</html>
|