首页
畅所欲言
友情链接
壁纸大全
数据统计
推荐
工具箱
在线白板
Search
1
职教云小助手重构更新,职教云助手最新版下载地址【已和谐】
14,149 阅读
2
职教云-智慧职教,网课观看分析(秒刷网课)
11,392 阅读
3
gradle-5.4.1-all.zip下载
9,392 阅读
4
职教云-智慧职教,签到补签分析(逆天改命系列)
8,162 阅读
5
一个优秀的程序员从写文档开始:免费领14个月语雀云笔记会员
7,003 阅读
学习笔记
Web
Python
转载文章
算法刷题
JS逆向
综合笔记
安卓
物联网
Java
C
资源收集
软件收藏
网络资源
影视专辑
TED英语角
随便写写
随手拍
登录
/
注册
Search
Lan
累计撰写
615
篇文章
累计收到
629
条评论
首页
栏目
学习笔记
Web
Python
转载文章
算法刷题
JS逆向
综合笔记
安卓
物联网
Java
C
资源收集
软件收藏
网络资源
影视专辑
TED英语角
随便写写
随手拍
页面
畅所欲言
友情链接
壁纸大全
数据统计
推荐
工具箱
在线白板
搜索到
615
篇与
的结果
2021-11-27
国内高匿免费代理 爬虫代码
只爬了ipimport requests import parsel import base64 import re res = requests.get('http://ip.yqie.com/proxygaoni/index.htm') res.encoding = 'utf-8' for i in parsel.Selector(res.text).xpath("//tr/td[2]").extract(): print(base64.b64decode(re.findall(f'window\.atob\("(.*?)"\)', i)[0]).decode())新增一个lxml的xpath版本import base64 import re import requests from lxml import etree res = requests.get('http://ip.yqie.com/proxygaoni/index.htm') res.encoding = 'utf-8' for i in etree.HTML(res.text).xpath('//tr/td[2]/script'): print(base64.b64decode(re.findall(f'window\.atob\("(.*?)"\)', i.text)[0]).decode())
2021年11月27日
626 阅读
2 评论
2 点赞
2021-11-26
淘宝定制logo趣事
前两天注册了一个工作室,然后想着设计个logo,在网上找了半天都不是很满意,于是乎去了淘宝。我提的要求有星仪或者XY然后过了一天晚上,一个名为设计师1673的开始给我设计logo了,给了一个初稿,我感觉太普通了,并且说要圆润一点,用来做公众号头像的。期间,我还问了一句,他们是原创的吗,顺便来了一句中国人不骗中国人哈。然后他就给我来了一张圆润一点的logo虽然圆润了一点,但是吧没有我一开始要求的星仪或XY然后让我震惊的是,他很潦草的加了一笔。还真别说,有那味了,所以看他能不能完善一下。总体感觉还是挺满意的,除了颜色不好看,但是没关系,他把源文件发给我了,颜色怎么搭配就可以自己动手了。然后我也找了几个样机,试了下,感觉很不错,这钱值。然后最近公众号情况:
2021年11月26日
394 阅读
2 评论
5 点赞
2021-11-25
贝壳租房爬虫
import urllib.request as request from bs4 import BeautifulSoup import os def downloadImg(url: str, name): soup = BeautifulSoup(str(request.urlopen(url).read(), encoding='utf-8'), features='html.parser') savePath = f"./result/images/{name.replace('/', '-')}" if not os.path.exists(savePath): os.mkdir(savePath) for img in soup.select('div.content__article__slide__item > img'): img = img.get('data-src') with open(f"{savePath}/{img.split('/')[-1].split('!')[0].split('?')[0]}", 'wb') as f: f.write(request.urlopen(img).read()) def a(): with open('./result/list.txt', 'w', encoding='utf-8') as f: for i in range(1, 11): url = f'https://cs.zu.ke.com/zufang/pg{i}/#contentList' data = str(request.urlopen(url).read(), encoding='utf-8') soup = BeautifulSoup(data, features='html.parser') for item in soup.find_all('div', attrs={'class': 'content__list--item'}): imgTag = item.find('img') imgUrl = imgTag.get('data-src') print(imgUrl) title = imgTag.get('alt') print(title) downloadImg( f"https://cs.zu.ke.com{item.find('a', attrs={'class': 'content__list--item--aside'}).get('href')}", title) des = item.find('p', attrs={'class': 'content__list--item--des'}) \ .get_text().replace('\n', '').replace(' ', '') print(des) price = item.find('span', attrs={'class': "content__list--item-price"}).get_text() print(price) tags = [tag.get_text() for tag in item.find('p', attrs={'class': 'content__list--item--bottom oneline'}).select('p > i')] print(tags) f.write(f'{title},{des},{price},{tags}\n') print('*' * 30) if __name__ == '__main__': os.mkdir('/result') a()
2021年11月25日
506 阅读
2 评论
1 点赞
2021-11-25
vite创建vue项目 router报错:Uncaught SyntaxError: The requested module '/node_modules/.vite/vue-router.js?v=b45f922f' does not provide an export named 'createRouter'
Uncaught SyntaxError: The requested module '/node_modules/.vite/vue-router.js?v=b45f922f' does not provide an export named 'createRouter'You should uninstall the current vue-router module and reinstall the latest (version 4) one which is compatible with Vue 3 by running :npm uninstall vue-routerthennpm install vue-router@next -Shttps://stackoverflow.com/questions/65858930/does-not-provide-an-export-named-createrouter-vue-3-vite-and-vue-router
2021年11月25日
3,135 阅读
1 评论
0 点赞
2021-10-26
腾讯云双十一预热活动:200元:三年2核4g,四年1核2g,两个ink域名
付款截图:活动内容:邀请五个新人购买服务器70元一年2h4g轻量,就可以领取三张券我这个不是最划算的,但是感觉是我需要的,因为我感觉2h4g可能更有用一些,所以在2h4g上续费画的更多活动地址:https://curl.qcloud.com/2qyf1cnv
2021年10月26日
520 阅读
0 评论
0 点赞
2021-10-18
解除切屏和复制限制
//解除切屏限制window.onmouseleave = window.onblur = window.onmouseout = document.onmouseleave = document.onblur = document.onmouseout = document.body.onmouseleave = document.body.onblur = document.body.onmouseout = onmouseleave = onblur = onmouseout = null;//解除选中文本限制(这里html看具体考试页面绑定的限制事件dom而定)window.onselectstart = document.onselectstart = document.body.onselectstart = onselectstart = document.querySelector("html").onselectstart = null;//解除复制粘贴限制window.oncopy = window.onpaste = document.oncopy = document.onpaste = document.body.oncopy = document.body.onpaste = oncopy = onpaste = null;//解除右键菜单限制(这里html看具体考试页面绑定的限制事件dom而定)window.oncontextmenu = document.oncontextmenu = document.body.oncontextmenu = oncontextmenu = document.querySelector("html").oncontextmenu = null;//解除快捷键操作屏蔽window.onkeyup = window.onkeydown = window.onKeyPress = document.onkeyup = document.onkeydown = document.onKeyPress = document.body.onkeyup = document.body.onkeydown = document.body.onKeyPress = onkeyup = onkeydown = onKeyPress = null;
2021年10月18日
686 阅读
0 评论
1 点赞
2021-10-16
.net通过boundary上传文件
public void UploadVedio(string fileName) { fileName = "input_video_only_3sec.mp4"; byte[] vedioBytes = null; using (FileStream fileStream = new FileStream(@"D:\缓存内容\test.mp4", FileMode.Open, FileAccess.Read)) { try { vedioBytes = new byte[fileStream.Length]; fileStream.Read(vedioBytes, 0, (int)fileStream.Length); } catch (Exception ex) { throw ex; } } string cookie = ""; string token = getUploadToken(cookie); string boundary = "------WebKitFormBoundary5TsAeTVHbPVlsrNh"; string newline = "\r\n"; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(new Uri("")); req.ContentType = $"multipart/form-data;boundary=----WebKitFormBoundary5TsAeTVHbPVlsrNh"; req.Headers.Add("Authorization", token); byte[] itemBoundaryBytes = Encoding.UTF8.GetBytes("\r\n" + boundary + "\r\n"); byte[] endBoundaryBytes = Encoding.UTF8.GetBytes("\r\n" + boundary + "--\r\n"); req.Method = "POST"; Stream reqStream = req.GetRequestStream(); string textTemplate = $"Content-Disposition: form-data; name=\"name\"" + newline; textTemplate += newline; textTemplate += fileName + newline; textTemplate += boundary + newline; textTemplate += $"Content-Disposition: form-data; name=\"size\"" + newline; textTemplate += newline; textTemplate += vedioBytes.Length + newline; textTemplate += boundary + newline; textTemplate += $"Content-Disposition: form-data; name=\"dir\"" + newline; textTemplate += newline + newline; textTemplate += boundary + newline; byte[] itemBytes = Encoding.UTF8.GetBytes(textTemplate); reqStream.Write(itemBoundaryBytes, 0, itemBoundaryBytes.Length); reqStream.Write(itemBytes, 0, itemBytes.Length); string fileTemplate = $"Content-Disposition: form-data; name=\"file\"; filename=\"{fileName}\"\r\nContent-Type: video/mp4" + newline + newline; byte[] fileBytes = Encoding.UTF8.GetBytes(fileTemplate); reqStream.Write(fileBytes, 0, fileBytes.Length); reqStream.Write(vedioBytes, 0, vedioBytes.Length); reqStream.Write(endBoundaryBytes, 0, endBoundaryBytes.Length); reqStream.Close(); reqStream.Dispose(); HttpWebResponse rsp = (HttpWebResponse)req.GetResponse(); Encoding encoding = Encoding.UTF8; if (!string.IsNullOrEmpty(rsp.CharacterSet)) { encoding = Encoding.GetEncoding(rsp.CharacterSet); } }再来一个Python版本的: headers = {'Authorization': token, 'Content-Type': 'multipart/form-data;boundary=-------28947758029299'} url = '' fileContent = await file.read() multipart_encoder = MultipartEncoder( fields={'name': file.filename, 'size': str(len(fileContent)), 'file': (file.filename, fileContent, 'video/mp4')}, boundary='-------28947758029299') headers['Content-Type'] = multipart_encoder.content_type return requests.post(url=url, headers=headers, data=multipart_encoder, verify=False).json()
2021年10月16日
417 阅读
0 评论
1 点赞
1
...
23
24
25
...
88