在没有 Selenium 的情况下使用 Python 自动化网络抓取

Automating webscraping with Python without Selenium

我是 Python 的初学者,我需要从网站获取代码列表的数据: https://www.isindb.com/fix-cusip-calculate-cusip-check-digit/ 在 Enter Cusip 下,输入 list of codes 中的数据,然后单击 Fix 并检查结果。

我想使用 Python 自动执行此操作,但不使用 Selenium,因为它会很慢。

我想知道没有 Selenium 是否可以完成这项任务。如果可能,我应该如何处理。

您可以使用:

urllib3 和 BeautifulSoup 访问 https://urllib3.readthedocs.io/

mechanicalalsoup 访问 https://mechanicalsoup.readthedocs.io/en/stable/tutorial.html