NLP基础之Python爬虫

NLP基础之Python爬虫
Selenium 是一个用于web应用程序自动化测试的工具,直接运行在浏览器当中,支持chrome、firefox等浏览器。通过Python代码与WEB页面上元素进行交互(点击、输入等),可以获取指定元素的内容。

安装部署

  • selenium
  • -XPath Helper
  • chrome://extensions/
    页面获取XPath
    在这里插入图片描述
    获取地址
/html/body[@class='nodata ']/div[@id='mainBox'

猜你喜欢

转载自blog.csdn.net/duan_zhihua/article/details/107593634
今日推荐