摘要: ctrl+shift+x 阅读全文
posted @ 2024-06-01 21:26 我爱你的 阅读(21) 评论(0) 推荐(0)
摘要: import random random_num = random.randint(1,100) random_float = round(random.uniform(0.5, 1.5), 1) 阅读全文
posted @ 2024-06-01 19:32 我爱你的 阅读(16) 评论(0) 推荐(0)
摘要: from parsel import Selector sel = Selector(ct)url0 = sel.xpath('//select[@class="pageselect"]/option/@value').getall()#xpath提取url1 = sel.css('//select 阅读全文
posted @ 2024-06-01 11:33 我爱你的 阅读(11) 评论(0) 推荐(0)
摘要: # -*- coding: utf-8 -*-"""Created on 2024-05-31 10:21:56 @summary: @author: me"""import jsonfrom feapder.db.mysqldb import MysqlDBimport feapder"""# M 阅读全文
posted @ 2024-06-01 11:32 我爱你的 阅读(205) 评论(0) 推荐(0)
摘要: import reimport requestsclass Get_proxies: @classmethod def get_proxies_list(cls,num): res = requests.get(url = f"http://api.89ip.cn/tqdl.html?api=1&n 阅读全文
posted @ 2024-05-29 14:39 我爱你的 阅读(21) 评论(0) 推荐(0)
摘要: import re data = re.compile("<br>(.*?)<br>").findall(res) 阅读全文
posted @ 2024-05-27 14:44 我爱你的 阅读(11) 评论(0) 推荐(0)
摘要: from faker import Fakerfake = Faker(locale='zh_CN') f_ua = fake.user_agent() 阅读全文
posted @ 2024-05-27 14:29 我爱你的 阅读(11) 评论(0) 推荐(0)
摘要: """利用ffmpeg快速提取视频的音频文件"""# 参考"https://www.cnblogs.com/CodeAndMoe/p/13360011.html window安装ffmpeg并且设置环境变量 https://zhuanlan.zhihu.com/p/118362010"import 阅读全文
posted @ 2024-05-09 00:51 我爱你的 阅读(256) 评论(0) 推荐(0)
摘要: """利用ffmpeg快速提取视频的音频文件"""# 参考"https://www.cnblogs.com/CodeAndMoe/p/13360011.html window安装ffmpeg并且设置环境变量 https://zhuanlan.zhihu.com/p/118362010"import 阅读全文
posted @ 2024-05-08 23:03 我爱你的 阅读(260) 评论(0) 推荐(0)
摘要: import os import reimport eyed3 as eyed3path = 'D:\\歌曲\\改真无损\data\\'#歌曲目录"""改MP3信息 参考内容https://www.cnblogs.com/yanzhen/p/14014999.html https://www.cnb 阅读全文
posted @ 2024-04-06 01:53 我爱你的 阅读(81) 评论(0) 推荐(0)