上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: import os from imagededup.methods import PHash phasher = PHash() def process_file(img_path): # 生成图像目录中所有图像的二值hash编码 encodings = phasher.encode_images( 阅读全文
posted @ 2023-07-10 15:54 lvye001 阅读(298) 评论(0) 推荐(0)
摘要: from selenium import webdriver from selenium.webdriver import ChromeOptions from selenium.webdriver.common.keys import Keys from selenium.webdriver.su 阅读全文
posted @ 2023-03-17 17:09 lvye001 阅读(34) 评论(0) 推荐(0)
摘要: import cv2 import os videopath =r"1-1-2-1_fa_diantou+idle+idle_audio.mp4" pic_path = r'F:\2023_02_24\liu_hui\video_cv2\pic' def start_deal(): vc = cv2 阅读全文
posted @ 2023-03-17 17:06 lvye001 阅读(289) 评论(0) 推荐(0)
摘要: import os mp4_dir_path = r'F:\2023_02_21\du_zhan\转换视频\mp4' gp3_dir_path = r'F:\2023_02_21\du_zhan\转换视频\3gp' for f in os.listdir(mp4_dir_path): mp4_ful 阅读全文
posted @ 2023-02-27 09:39 lvye001 阅读(157) 评论(0) 推荐(0)
摘要: import requests import re import json import time from xlrd import open_workbook from xlutils.copy import copy class TianYanChaSpider(): def __init__( 阅读全文
posted @ 2022-09-16 08:58 lvye001 阅读(506) 评论(0) 推荐(0)
摘要: import os import requests from tqdm import tqdm VIDEO_PATH = r'videos' def download(url,fname): # 用流stream的方式获取url的数据 resp = requests.get(url, stream= 阅读全文
posted @ 2022-07-18 09:21 lvye001 阅读(218) 评论(0) 推荐(0)
摘要: 首先 pip install yt-dlp import subprocessvideo_id = 'XHLaEfc3fTs'url = "https://www.youtube.com/watch?v=" + video_idsubprocess.call(['yt-dlp','-f','bv[e 阅读全文
posted @ 2022-06-24 19:28 lvye001 阅读(563) 评论(0) 推荐(0)
摘要: 废话不多说,直接上代码 from selenium import webdriverfrom selenium.webdriver import ChromeOptionsimport timeimport refrom selenium.webdriver.support import expec 阅读全文
posted @ 2022-03-25 15:34 lvye001 阅读(4851) 评论(0) 推荐(1)
摘要: 反屏蔽 现在很多网站都加上了对 Selenium 的检测,来防止一些爬虫的恶意爬取。即如果检测到有人在使用 Selenium 打开浏览器,那就直接屏蔽。 其大多数情况下,检测基本原理是检测当前浏览器窗口下的 window.navigator 对象是否包含 webdriver 这个属性。因为在正常使用 阅读全文
posted @ 2022-03-25 10:43 lvye001 阅读(1650) 评论(0) 推荐(0)
摘要: 首先安装 selenium可以直接可以用pip安装。 pip install selenium 接下来安装谷歌驱动,chromedriver的安装一定要与Chrome的版本一致。 安装地址如下: 1、http://chromedriver.storage.googleapis.com/index.h 阅读全文
posted @ 2022-03-22 15:29 lvye001 阅读(272) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 10 下一页