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
0
votes
1 answer

Twill CMS (Laravel) - Show repeater data in content editor

I've created a block for my "main content" and this block uses a repeater field to add multiple buttons. It is rendering corrrectly on my frontend but the buttons aren't included in the content editor of Twill. When I remove @yield from…
Nico Shultz
  • 1,872
  • 1
  • 9
  • 23
0
votes
1 answer

Twill causing print() not to show

I'm trying to use Twill with Jupyter/Python. However if I use Print() after I've imported Twill eg. from twill.commands import go, showforms, formclear, fv, submit, show print("hi") it won't print anything. Is this normal behaviour? This happens…
Thomas
  • 435
  • 6
  • 20
0
votes
0 answers

Problem with importing twill3 in Python 3.8

I'm trying to write a little web scraping script, and I'm trying to use twill3, but it keeps giving me the error File "mypath\twill3\other_packages\subprocess.py", line 392 False = 0 SyntaxError: cannot assign to False I really have no idea what to…
0
votes
1 answer

Trying to enable sound on incoming SMS in Flex Twilio

I've set up a workspace in Flex to handle incoming SMS contacts from customers. What I'm trying to do is enable an audio notification that a new SMS message has come into Flex. I'm working on a Flex Plugin to do this. What I've done is added a…
0
votes
1 answer

python: get google adsense earnings report

I need a python script that gets the google adsense earnings and I found adsense scraper: http://pypi.python.org/pypi/adsense_scraper/0.5 It uses Twill and html5lib to scrape google adsense earnings data. When I use it I get this error…
SandyBr
  • 11,459
  • 10
  • 29
  • 27
0
votes
0 answers

Accessing an application using python

I am planning to access a https application(via browser) for form submission and other operations and I would like to carry this out using Python. (Like accessing an application for timesheet submission, procuring data etc) Is twill/webbrowser a…
0
votes
1 answer

Get mechanize and twill talking

I am writing a script for my employer to get certain data from their own site. For a long list of reasons, I need to get the data off the site as it is shown. I have discovered, some of that data is retrieved via a js call... In retrospect, I…
Alex Nich
  • 23
  • 1
  • 7
0
votes
1 answer

Python Twill: follow link and grab data

I finally arrived to open a page and make the request I want. #!/usr/bin/env python from twill.commands import * go("http://www.website.com/") code(200) # assert page loaded fine showforms() # Make a search searchStr = '%s' % n formvalue(1, 'q',…
Francesco Mantovani
  • 10,216
  • 13
  • 73
  • 113
0
votes
1 answer

Where is "tidy" located in "twill"?

on "twill" documentation page it is written: By default, twill will run pages through tidy before processing them. This is on by default because the Python libraries that parse HTML are very bad at dealing with incorrect HTML, and will…
brilliant
  • 2,805
  • 11
  • 39
  • 57
0
votes
1 answer

Does GAE accept twill at all?

I have created my GAE application in directory "my_application". Inside this directory I created a .py file and named it "my_scrypt". The contents of "my_scrypt" in the beginning were as following: print 'Content-Type: text/plain' print '' print…
brilliant
  • 2,805
  • 11
  • 39
  • 57
0
votes
2 answers

How to deploy this "Python+twill+mechanize" combination to "Google App Engine"?

I've been trying to pass my login and password from Python script to the eBay sign-in page. Later I want this script to be run from "Google App Engine" I was suggested to use "mechanize". Unfortunately, it didn't work for me: IDLE 1.2.4 >>>…
brilliant
  • 2,805
  • 11
  • 39
  • 57
0
votes
1 answer

Twill submit function not working with form

I am trying to write a crawler with twill for a page, and it requires me to login. I can fill in the form. But the submit() function of twill does not seem to "click" the button. Form name=fSSUser_Logon (#1) ## ## __Name__________________ __Type___…
Albert
  • 23
  • 1
  • 10
0
votes
0 answers

Python Tumblr Uploader Bot (with twill)

So I making a Tumblr bot in python with twill (yea I know I could use API, but i want to use multiple accounts (50+) and I don't want to create an API for every account)) And how can I make the uploading procedure through twill? I succesfully log…
Attila Kis
  • 521
  • 2
  • 13