摘要: 一.昨日作业 1 import requests 2 from bs4 import BeautifulSoup 3 from pymongo import MongoClient 4 5 # 连接MongoDB客户端 6 client = MongoClient('localhost', 2701 阅读全文
posted @ 2019-06-22 10:39 有生-L 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 '''''' 2 ''' 3 pip3 install beautifulsoup4 # 安装bs4 4 pip3 install lxml # 下载lxml解析器 5 ''' 6 html_doc = """ 7 <html><head><title>The Dormouse's story< 阅读全文
posted @ 2019-06-22 10:31 有生-L 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 '''''' 2 ''' 3 破解极验滑动验证 4 破解极验滑动验证 5 博客园登录url: 6 https://account.cnblogs.com/signin?returnUrl=https%3A%2F%2Fwww.cnblogs.com%2F 7 8 代码逻辑: 9 1、输入用户名与密 阅读全文
posted @ 2019-06-22 10:26 有生-L 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 1.关于selenium选择器xpath的使用: 2.selenium剩余更多操作: 1 from selenium import webdriver 2 from selenium.webdriver.common.keys import Keys 3 import time 4 5 driver 阅读全文
posted @ 2019-06-19 19:45 有生-L 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1.requests的post请求 2.requests的高级用法 3.selenium模块 4.实例 5.作业 1 from selenium import webdriver 2 import time 3 driver=webdriver.Chrome() 4 driver.maximize_ 阅读全文
posted @ 2019-06-19 19:41 有生-L 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 一.爬虫 1.爬取梨视频页面全部视频: 2.异步爬取 3.requests的详细使用: 4.实例:爬取豆瓣top250电影信息: 5.作业:爬取豆瓣top250全部电影信息: 二.总结 1.什么是爬虫? 爬虫指的是爬取数据。 2.什么是互联网? 由一堆网络设备把一台一台的计算机互联到-起。 3.互联 阅读全文
posted @ 2019-06-16 21:57 有生-L 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 4.爬虫基础知识 阅读全文
posted @ 2019-06-13 23:50 有生-L 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 一.今日内容 1.数据类型剩余的内置方法 2.字符编码 把字符集中的字符编码为指定集合中某一对象(例如:比特模式、自然数序列、8位组或者电脉冲),以便文本在计算机中存储和通过通信网络的传递。常见的例子包括将拉丁字母表编码成摩斯电码和ASCII。其中,ASCII将字母、数字和其它符号编号,并用7比特的 阅读全文
posted @ 2019-06-12 22:03 有生-L 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 一.代码部分 py01# print('Stella!')'''print('Stella!')''' # name = 'lee'## print(name) # id,type,valuex = 10y = 10 # print(id(x))# print(id(y)) # name = 'le 阅读全文
posted @ 2019-06-11 20:49 有生-L 阅读(202) 评论(0) 推荐(0) 编辑