[twill] question about twill's functionality

Xiangyi Meng meng at are.Berkeley.EDU
Mon Oct 23 15:08:05 PDT 2006


Thanks a lot for your quick response! Twill is pretty cool.

Two questions:
1.   File "postcost.py", line 10
     fv 1 origin_zip "211300"
SyntaxError: invalid syntax

Why do I get this error?

2. how do I extract the field value from the web? For example, they have 
the field name for the authentication code as "vImageCode".

Thanks again for your time!


Xiangyi Meng
University of California, Berkeley
Agricultural & Resource Economics
University of California, Berkeley
Room 304, Giannini Hall
Berkeley, CA 94720-3310
Phone: 510-643-5419(O)
Fax: 510-643-8911(F)
Cell: 510-717-5785

On Mon, 23 Oct 2006, Titus Brown wrote:

> On Mon, Oct 23, 2006 at 01:26:40PM -0700, Xiangyi Meng wrote:
> -> Dear Sir or Madam,
> ->
> -> I am wondering whether twill could recognize the authentication code on a
> -> web page. My research needs some shipment cost between any two counties in
> -> China. A company www.website-export.com provides this information: I just
> -> need to input counties' zip code, the web will return the cost to me. But
> -> each request needs an authentication code (numbers within an image) and I
> -> need to make about 12000
> -> requests to get the info I need. So I am wondering whether twill could
> -> help me with this. As long as I don't reflesh the web page (i.e., after
> -> one request, just click "back" button to make a new request), the
> -> authentication code won't change.
> Hi, Xiangyi,
> If the Web site is silly enough to let you make multiple requests with a
> single authentication code (are you *sure*??) then this should be easy
> to do.  All you'll have to do is enter the auth code manually once, and
> then use 'back' to go back to it.
> cheers,
> --titus

More information about the twill mailing list