我正在写一个webscraper /自动化工具.此工具需要使用POST请求来提交表单数据.最后一个动作使用此链接:
<a id="linkSaveDestination" href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("linkSaveDestination", "", true, "", "", false, true))'>Save URL on All Search Engines</a>
Run Code Online (Sandbox Code Playgroud)
从此表单提交数据:
<input name="sem_ad_group__destination_url" type="text" maxlength="1024" id="sem_ad_group__destination_url" class="TextValueStyle" style="width:800px;">
Run Code Online (Sandbox Code Playgroud)
我一直在使用请求和BeautifulSoup.据我所知,这些库无法与Javascript交互,人们推荐使用Selenium.但据我所知,Selenium无法进行POST.我怎么处理这个?是否可以不像Selenium那样打开实际的浏览器呢?