hello hello~ ,这里是绝命Coding——老白~💖💖 ,欢迎大家点赞🥳🥳关注💥💥收藏🌹🌹🌹
💥个人主页:绝命Coding-优快云博客
💥 所属专栏:后端技术分享
这里将会不定期更新有关后端、前端的内容,希望大家多多点赞关注收藏💖
爬虫就三大种实现方式。第一种是获取网页源代码来获取数据,这种也只能在特定网站生效;第二种是直接get或者post提交数据,这种难度有时候会较大,因为接口往往有一些限制;第三种就是直接模拟浏览器点击操作,第三种就比较无脑,可以实现很多第一第二种实现不了,比如Boss海投工具等。本文介绍的就是Selenium的基本用法。
Python3中使用Selenium进行Web自动化测试是一种非常常见的方法。
#Python3中Selenium使用方法(连载) https://www.toutiao.com/a6425040355548397825/
# Selenium 调用IEDriverServer打开IE浏览器 - 天高地阔的专栏 - 优快云博客
#2018/2/*
#http://blog.youkuaiyun.com/jichuang123/article/details/53008581
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
brower = webdriver.Ie()
url = 'https://hao.360.cn/?wd_xp1'
brower.get(url)
intput = brower.find_element