摘要: 课堂知识总结: 01 解析库之bs4 '''''' ''' pip3 install beautifulsoup4 # 安装bs4 pip3 install lxml # 下载lxml解析器 ''' html_doc = """ <html><head><title>The Dormouse's s 阅读全文
posted @ 2019-06-21 12:45 bcsacr 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 课堂知识总结: from selenium import webdriver # 用来驱动浏览器的 from selenium.webdriver import ActionChains # 破解滑动验证码的时候用的 可以拖动图片 import time from PIL import Image 阅读全文
posted @ 2019-06-21 12:37 bcsacr 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 课堂知识总结: 01 selenium选择器之Xpath from selenium import webdriver driver = webdriver.Chrome(r'D:\BaiduNetdiskDownload\chromedriver_win32\chromedriver.exe') 阅读全文
posted @ 2019-06-21 12:34 bcsacr 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 课堂内容总结: 01 requests之POST请求 访问login页获取token信息 post请求登陆github ''' import requests import re # 一 访问login页获取token信息 ''' 请求url: https://github.com/login 请求 阅读全文
posted @ 2019-06-18 21:06 bcsacr 阅读(120) 评论(0) 推荐(0) 编辑
摘要: import requests import re headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 阅读全文
posted @ 2019-06-17 21:47 bcsacr 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 今日内容总结: 1.函数部分 '' # # 无参函数 # # 不需要接收外部传入的参数 # def foo(): # print('from foo..') # foo() # # # # # 有参函数 # # 需要接收外部传入的参数 # def login(user, pwd): # # prin 阅读全文
posted @ 2019-06-13 18:48 bcsacr 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 作业如下: 作业二: 01数据类型剩余内置方法: # # 列表类型: # # 1.insert() # 插入 # # 第一个参数: 索引 第二个参数: 插入的值 # list1 = ['tank', 18, 'male', 3.0, 9, '广东', 'tank', [1, 2]] # # list 阅读全文
posted @ 2019-06-12 21:49 bcsacr 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 运行结果; 阅读全文
posted @ 2019-06-11 21:42 bcsacr 阅读(130) 评论(0) 推荐(0) 编辑