question: script to input data into a webpage and then retrieve the result?

Discussion in 'Python' started by mxywp, Oct 22, 2006.

  1. mxywp

    mxywp Guest

    Hi,

    Could someone help me with this or share an example script with me?

    Here is what I want to accomplish:
    (1) input 3 values into 3 boxes on a web page
    (2) there is an authentication code each time you access this page and I have to write this code into the fourth box on the same page
    (3) click "submit" button
    (4) this web page will turn into a page with a table having a value calculated from my inputs
    (5) extract this value into a local file
    (6) repeat the above for 12000 times.

    I would really appreciate it if someone can tell me how to do it using python script. I am new to python web programming.

    Thanks,
    mxywp
     
    mxywp, Oct 22, 2006
    #1
    1. Advertisements

  2. mxywp

    Paul Rubin Guest

    Look at the docs for the urllib module. Also, arrange for some
    alternative API on the web side, if possible. What you're trying to
    do is somewhat messy technically, and could be considered impolite (or
    worse) if done without cooperation from the web site operator.
     
    Paul Rubin, Oct 22, 2006
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.