dtfpznrbn503027700 2018-05-23 11:32
浏览 546

编写自动填写并提交Web表单程序

I am trying to write a program which can automatically fill in and submit a form in a web in particular time slot.

But i have no idea how and where to start. i searched this in google, but only resulting very general answer like using JavaScript, python. Can anyone tell me which languages should i learn first?

  • 写回答

3条回答 默认 最新

  • donglanzhan7151 2018-05-23 11:42
    关注

    The answers you found, as general as they are, are correct. I'll try to explain it to you.

    As you are trying to automatize some activity, you have to use a script language to basically

    1. Get stuff references (like getting indexes, forms/fields IDs, etc)
    2. Insert/change stuff (like filling a field, following the field references)
    3. Save stuff (prepare a file, with field references and it's content, that can be injected to the specific system or website)

    One example of script language is Python.

    So you already have your script. Now you need to inject it on the page. The programming language that can do it for you is Javascript, or JS. It allows you to talk with the webpage, GETting data/references or POSTing data.

    评论

报告相同问题?