Questions tagged [twill]

twill is an open source language written in Python that allows browsing the Web from a command line interface. twill supports most standard Web features (like forms and cookies) and automated Web testing. With its latest release in 2007, twill is considered outdated today.

Twill is a web browsing language for automating web browsing from a command line interface.

The latest release of twill is twill 0.9, released Thursday, December 27th, 2007.

The tool is outdated. There are several alternatives, like selenium or mechanize.

83 questions
1
vote
0 answers

Automation using python and twill of a Pubmed Search

I am trying to use python and twill to automate a search on the PubMed Database, but right now I'm having problems getting one search to work. My base code looks like this: from twill.commands import…
1
vote
0 answers

Mechanize does not follow redirect after website login

I've been having a lot of trouble getting what should be a fairly simple login script to work on a particular website. My code does work on another website (Reddit), but it doesn't work on: https://eo-sso-idp.eo.esa.int/idp/umsso20/login After…
phototronic
  • 73
  • 1
  • 7
1
vote
1 answer

Problems getting twill installed and working in python 2.7

I installed twill by using pip, and another try using easy_install, I want to play around with it in Powershell. Following this page - http://twill.idyll.org/ I wanted to play around with it. To start using twill, install it and then type twill-sh.…
1
vote
1 answer

AttributeError: type object 'HTTPConnectionPool' has no attribute 'ConnectionCls'

When running nosetests, using Flask-test I keep getting this error: File "/app/env/local/lib/python2.7/site-packages/twill/browser.py", line 33, in __init__ cpl.HTTPConnectionPool.old_http = cpl.HTTPConnectionPool.ConnectionCls AttributeError:…
1
vote
1 answer

Elegantly suppress Twill output in Python

I've recently been playing around with Twill and BeautifulSoup to do some basic screenscraping. However, it appears that one of the commands I'm using is printing a bunch of undesired output to the screen. Here's a quick snippet of the code I use to…
Barnacle_Ed
  • 80
  • 11
1
vote
1 answer

Does Twill Work With HTTPS?

I just got Twill and was playing around with it, and it seems to have trouble with HTTPS sites. For example, the command go('http://boston.craigslist.org/') will connect just fine, but go('https://accounts.craigslist.org/') fails. The same thing…
riqitang
  • 3,241
  • 4
  • 37
  • 47
1
vote
1 answer

Functional Testing a Flask App: Weird Twill Traceback

I'm testing my Flask app. In summary, here is my question(s): 1) My final url assertion in the block of code below fails. According to Twill, it fails because the actual url is '/auth/login'. In other words, the user was NOT redirected to the…
Sean
  • 1,149
  • 18
  • 28
1
vote
1 answer

Need help logging in to a website using python

I need to crawl a few websites for a university project and I have reached a dead end for a site that requires log-in. I am using the urllib,urllib2,cookielib modules in Python to log in. It does not work for http://www.cafemom.com. The http…
0
votes
1 answer

twill - changing the proxy server setting in runtime

I've tried to create a twill test that changes the proxy server settings of 2 different tests. I need to trigger this change in runtime without relaunching the test script. I've tried to use the "http_proxy" environment variable by setting…
0
votes
1 answer

using twill to follow link id

I have this simple twill code >>> from twill.commands import * >>> go("http://stackoverflow.com:80") ==> at http://stackoverflow.com:80 'http://stackoverflow.com:80' >>> showlinks() 1. log in ==> /users/login 2. careers ==>…
khinester
  • 3,398
  • 9
  • 45
  • 88
0
votes
1 answer

Using Twill or other http tool on https

I am able to use twill to log in to a normal HTTP site. However, when I try and log into an SSL site, I get the following error: $ twill-sh >> go http://www.google.com ==> at http://www.google.com >> go…
David542
  • 104,438
  • 178
  • 489
  • 842
0
votes
0 answers

Login to webpage using twill

I am trying to programatically login to the webpage https://www.soliscloud.com/#/homepage Step 1 from the twill commands is to get a list of forms to help me get started, but this returns no results. Am I doing something wrong ? from twill.commands…
user1438082
  • 2,740
  • 10
  • 48
  • 82
0
votes
1 answer

Twill cms login error message cURL error 28: Connection timed out after 1011 milliseconds

Does anyone know the awnser to this problem. Im working with the twill cms and when i press login i'm faced with this error message : Error retrieving credentials from the instance profile metadata service. (cURL error 28: Connection timed out…
0
votes
1 answer

Using twill's builtin mechanize distribution throws AttributeError on _debug?

I use twill (0.9) and I want to also access its builtin mechanize distribution (on Python 2.6.6). I read all the documentation and I'm not clear whether they even support or recommend that, if so they certainly don't publicize it. It seems you can…
smci
  • 32,567
  • 20
  • 113
  • 146
0
votes
1 answer

Twill repeaters translatable

I'm using twill for laravel I need to have a translatable repeater like this So i created the repeater model php artisan twill:make:module TechnologyBenefits -P If I do not enabled translation module and disable from form the translate key all…
Kormi Web Solutions
  • 533
  • 1
  • 4
  • 18