<<--B站..........欢迎来到DGX的博客..........GitHub-->>

我的B站
摘要: 1.检测当前电脑或者浏览器的代理IP import requests from bs4 import BeautifulSoup def proxy(): url = 'http://httpbin.org/get' r=requests.get(url) print(r.text) if __na 阅读全文
posted @ 2020-07-31 21:08 DG息 阅读(2774) 评论(0) 推荐(0) 编辑
摘要: 1.使用python爬取快代理(http://www.kuaidaili.com)的免费代理IP import requests import parsel import time proxies_list = [] for page in range(1,5):#爬取1~4页的代理ip print 阅读全文
posted @ 2020-07-14 09:34 DG息 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 代码请在B站:DGX杂学的GUI教学视频的下方获取,博客园就不上传了。懒人 阅读全文
posted @ 2020-06-03 15:35 DG息 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 方法:使用BurpSuite对“云班课的视频暂停”时对服务器的请求进行抓包,接着修改拦截内容中的Cookie相关内容,最后放包、刷新播放页面就可以发现“经验值”得到了 目前本人已了解“油猴”和“Chrome”的插件可以解除云班课的视频“老师已设置不可拖动进度条”的问题(使用方便,推荐) 下面是我个人 阅读全文
posted @ 2020-06-01 01:13 DG息 阅读(3367) 评论(0) 推荐(0) 编辑
摘要: (完善中) 代码 # coding=utf-8 import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation from PIL import Image import math 阅读全文
posted @ 2020-05-28 08:29 DG息 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 目录: 一:使用mysql时,cmd笔记 二:如何使用python把csv文件内容导入mysql数据库 三:python作业:任务26,数据库实践 一.使用cmd弄mysql时的一些内容(部分) Microsoft Windows [Version 10.0.14393] (c) 2016 Micr 阅读全文
posted @ 2020-05-26 12:05 DG息 阅读(733) 评论(0) 推荐(1) 编辑
摘要: 1.利用urllib库爬取python123.io网站的html代码 1 import urllib.request 2 response=urllib.request.urlopen("http://python123.io/") 3 print(response.read().decode("u 阅读全文
posted @ 2020-05-18 23:46 DG息 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1.问题:请用requests库的get()函数访问如下一个网站2次,打印返回状态,text()内容,计算text()属性和content属性所返回网页内容的长度。(百度主页) import requests url="https://www.baidu.com/" def gethtml(url) 阅读全文
posted @ 2020-05-13 15:03 DG息 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1.利用Python制作gif图片(引用第三方库“imageio”,没有的要先安装) 代码(参考链接:https://blog.csdn.net/ZT7524/article/details/88928005) import imageio def create_gif(image_list, gi 阅读全文
posted @ 2020-04-26 18:15 DG息 阅读(1214) 评论(0) 推荐(0) 编辑
摘要: 1.正则表达式的点星匹配 描述 正则表达式中符号.表示匹配任意一个单字符,*表示匹配0个或者多个前面的单字符。‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭ 阅读全文
posted @ 2020-04-19 20:59 DG息 阅读(2917) 评论(2) 推荐(3) 编辑