Programmatic Form Submit

前端 未结 4 487
遥遥无期
遥遥无期 2021-01-14 16:26

I want to scrape the contents of a webpage. The contents are produced after a form on that site has been filled in and submitted.

I\'ve read on how to scrape the en

4条回答
  •  一个人的身影
    2021-01-14 17:08

    You can do it with javascript. If the form is something like:

    Then you can do this in javascript:

     
    

    You can use the "onClick" attribute of links or buttons to invoke this code. To invoke it automatically when a page is loaded, use the "onLoad" attribute of the element:

    
    

提交回复
热议问题