![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
selenium
6点就起床
一个人
展开
-
古诗文网模拟登录(使用tesserocr库进行验证码识别)
from selenium import webdriverfrom lxml import etreeimport tesserocrimport numpy as npimport timefrom PIL import Imageimport matplotlib.pylab as pltimport matplotlib.image as mpimg#加载谷歌驱动程序bro=webdriver.Chrome(executable_path='D:\python\Reptiliane原创 2020-12-23 11:55:37 · 406 阅读 · 0 评论 -
基于scrapy框架爬取新浪体育部分板块内容
import scrapyfrom selenium import webdriverfrom sohuPro.items import SohuproItemclass SohuSpider(scrapy.Spider): name = 'sohu' # allowed_domains = ['www.xxx.com'] start_urls = ['http://sports.sina.com.cn/'] #需求:爬取新浪体育欧冠,西甲,意甲,德甲等5大板块中的新闻原创 2020-12-08 21:35:23 · 393 阅读 · 1 评论