上一页 1 2 3 4 5 6 ··· 24 下一页
摘要: #线程,进程 #进程是资源单位,每个进程至少要有一个线程 #线程是执行单位 #启动每一个程序都默认有一个主线程 #仍然是单线程 # def func(): # for i in range(1000): # print("func",i) # # if __name__ == '__main__': 阅读全文
posted @ 2022-05-06 18:36 凋零_( 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #线程池一次性开辟一些线程,用户给线程提交任务,线程任务的调用交给线程池来完成 # # from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor #线程池和进程池 # # def fn(name): # for i i 阅读全文
posted @ 2022-05-06 18:35 凋零_( 阅读(130) 评论(0) 推荐(0) 编辑
摘要: import csv import requests #安装库pycryptodome from Cryptodome.Cipher import AES from base64 import b64encode import json #1 找到未加密的参数 #2 想办法把参数进行加密(必须参考网 阅读全文
posted @ 2022-05-02 17:44 凋零_( 阅读(181) 评论(0) 推荐(0) 编辑
摘要: #使用第三方机器发送请求 import requests #找中间代理的网站 #218.60.8.83:3129 proxies1={ "http":"https://218.60.8.83:3129" #"https":""不同协议可以加赠不同代理 } resp=requests.get('htt 阅读全文
posted @ 2022-04-30 17:20 凋零_( 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #传过来的json中的数据链接https://video.pearvideo.com/mp4/short/20220427/1651201342168-15869965-hd.mp4 #页面html中的<video webkit-playsinline="" playsinline="" x-web 阅读全文
posted @ 2022-04-30 16:56 凋零_( 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #那数据源代码 #提取和解析数据 import requests from lxml import etree url ="https://shijiazhuang.zbj.com/search/f/?type=new&kw=saas" resp=requests.get(url) html=etr 阅读全文
posted @ 2022-04-26 11:31 凋零_( 阅读(148) 评论(0) 推荐(0) 编辑
摘要: #xpath是在xml文档中搜索内容的一门语言 #html是xml的子集 xml = """ <book> <id>1</id> <name>野花遍地⾹</name> <price>1.23</price> <nick>臭⾖腐</nick> <author> <nick id="10086">周⼤强 阅读全文
posted @ 2022-04-26 11:07 凋零_( 阅读(28) 评论(0) 推荐(0) 编辑
摘要: #html标签的筛选 #拿到页面源代码 #使用bs4进行解析 import time import requests import csv from bs4 import BeautifulSoup header= { "User-Agent": "Mozilla/5.0 (Windows NT 1 阅读全文
posted @ 2022-04-26 10:01 凋零_( 阅读(27) 评论(0) 推荐(0) 编辑
摘要: #定位到2022必看热片 #提取子页面连接地址 #拿到想要的下载地址 import re import requests import csv header={ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/ 阅读全文
posted @ 2022-04-23 16:18 凋零_( 阅读(521) 评论(0) 推荐(0) 编辑
摘要: import requests import re import csv wq=1 while(wq<163): dat={ "season_version":"-1", "spoken_language_type":"-1", "area":"-1", "is_finish":"-1", "cop 阅读全文
posted @ 2022-04-20 20:19 凋零_( 阅读(210) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 24 下一页