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
16
votes
7 answers

How to fix ImportError: No module named packages.urllib3?

I'm running Python 2.7.6 on an Ubuntu machine. When I run twill-sh (Twill is a browser used for testing websites) in my Terminal, I'm getting the following: Traceback (most recent call last): File "dep.py", line 2, in import…
Joseph John
  • 510
  • 1
  • 5
  • 21
10
votes
3 answers

Python: Clicking a button with urllib or urllib2

I want to click a button with python, the info for the form is automatically filled by the webpage. the HTML code for sending a request to the button is: INPUT type="submit" value="Place a Bid"> How would I go about doing this? Is it possible to…
Dan Doe
  • 1,146
  • 3
  • 14
  • 25
10
votes
4 answers

Is there a new/updated Twill?

I've been trying to learn Twill Scripting on Python and I am using Python 3.4 and Twill 1.8.0. Been reading some posts here and I found it interesting to study. But, I do have a problem installing Twill. I just knew that PRINT in Python is now a…
GM-Xile GM-Xile
  • 321
  • 1
  • 8
  • 21
7
votes
2 answers

Sending a POST with mechanize and requests.

I am trying to send a POST using mechanize however my code won't work sometimes(and I know why). I have used mechanize, twill and requests. With mechanize and twills it is working and with requests it is not. Probably I am doing it in wrong way.…
avi
  • 9,292
  • 11
  • 47
  • 84
6
votes
4 answers

How to log in to a website using installed twill?

I have just successfully installed TWILL on my computer with the help of one very supportive member of "StackOverflow" (you can check it out HERE) and have tried to run one of the simple examples on the twill documentation page (you can see that…
brilliant
  • 2,805
  • 11
  • 39
  • 57
5
votes
2 answers

Twill/Mechanize access to html content

Couple of questions regarding Twill and Mechanize: Is Twill still relevant as a web-automation tool? If yes, then why is not currently maintained? If no, has Mechanize matured further to support Twill-style simple scripting? Or is there another…
Shaheeb Roshan
  • 611
  • 1
  • 7
  • 17
4
votes
1 answer

Using Twill to grab .txt from login page Python

I'm using Twill to retrieve pages that contain wanted .txt data on them so I can store them as an Excel file. The data is password protected so I'm logging in from the /user/login page. My code runs into the problem where it tries to access the text…
HelloToEarth
  • 2,027
  • 3
  • 22
  • 48
4
votes
1 answer

How can I start using twill?

I am sorry I have already asked this question on "Superuser", but nobody answers there, so I deleted it from "Superuser" and decided to post it here. Hope it's not a big crime, especially given the fact that I was firstly advised to use twill here…
brilliant
  • 2,805
  • 11
  • 39
  • 57
4
votes
1 answer

How to click a button by twill?

I want to go to a site and click on a button or link for logging in. But login does not use form. I think login procedure use javascript. Input for username:
3
votes
1 answer

Twill alternative for integration testing

I am using to twill to do integration testing for an AppEngine (using tipfy micro framework) application but unfortunately twill is not maintained and I cannot test PUT and DELETE requests. Is there any similar solution? I am thinking of using…
PanosJee
  • 3,866
  • 6
  • 36
  • 49
3
votes
0 answers

Issue logging into password protected site using Python 2.7

I'm using Twill to retrieve pages that contain wanted .txt data on them so I can store them as an Excel file. The data is password protected so I'm logging in from the /user/login page. My code runs into the problem where it tries to access the text…
HelloToEarth
  • 2,027
  • 3
  • 22
  • 48
3
votes
1 answer

Django & twill - session cookies not being set

I'm testing a django application with twill, and django-test-utils, and it's not logging me in. I think it's not setting the django session cookie. I go to a webpage (in twill) that calls request.session.set_test_cookie(), and after that call…
Amandasaurus
  • 58,203
  • 71
  • 188
  • 248
3
votes
1 answer

Problems installing twill on python 3 on windows.

I'm trying to use pip to install twill. I do the following. C:\Users\mjpvanzuijlen\Python\python3.exe -m pip install twill Which gives me the following result: Collecting twill Using cached…
Mitchell van Zuylen
  • 3,905
  • 4
  • 27
  • 64
3
votes
1 answer

Debug Twill Exception Error

I have been failing to go to a URL usign twill and I couldn't find a way to debug the issue further. I have enabled debug levels in twill for "http","equiv-refresh" and "commands", still twill is not giving any details about the error. Here is the…
takobaba
  • 306
  • 1
  • 4
  • 15
3
votes
2 answers

Python twill: download file accessible through PHP script

I use twill to navigate on a website protected by a login form. from twill.commands import * go('http://www.example.com/login/index.php') fv("login_form", "identifiant", "login") fv("login_form", "password", "pass") formaction("login_form",…
Antoine Gautier
  • 623
  • 8
  • 25
1
2 3 4 5 6