Home  >  Q&A  >  body text

python - Could you please tell me how to use post in the crawler to select the province variable option of the web page and get the web page that selects the option?

Please tell me how to simulate the drop-down menu options of this web page (http://wwwold.ipe.org.cn/poll..., such as regions, prefecture-level cities, etc.) using python, and Click Query, click Query for this option<input type="submit" name="btn_search" value="Query" id="btn_search">, select the provincial area for this option<option value=""> --Provincial Administrative Regions--</option> , how to use post in Python to simulate selecting provincial regions and click query?

高洛峰高洛峰2711 days ago820

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-18 11:00:25

    The speed of crawling through simulated clicks is too slow. You can remove all the provinces and regions in the drop-down box first, and then directly transfer the parameters to crawl the result page

    reply
    0
  • 阿神

    阿神2017-05-18 11:00:25

    Please operate it and see what requests are initiated, simulating user operations, it’s too unreliable

    reply
    0
  • Cancelreply