摘要:
# coding = utf-8 import os import xlwt import re def readTxt_toExcel(valueList, Pathlist): workbook = xlwt.Workbook() # sheet = workbook.add_sheet('finish_郑磊', cell_overwrite_ok=True) # E...
阅读全文
摘要:
import cv2 import os Path = "C:/Users/zl3269/Desktop/test/video/" # 视频的格式 /aisg-server/Data/1_Face/4_ForProject/05_MultiCamerFaceCollection/Data/Video for Directory_list in os.listdir(Path): p...
阅读全文
摘要:
#coding=utf-8 import flickrapi import requests import os n=1 flickr=flickrapi.FlickrAPI('****************','*************',cache=True) try: photos=flickr.walk(user_id='11613546@N03',extras='url_z...
阅读全文
摘要:
'''Request+正则表达式抓取猫眼电影TOP100内容''' import requests from requests.exceptions import RequestException import re import json from multiprocessing import Pool #进程池 def get_one_page(url): try: ...
阅读全文
摘要:
import requests from bs4 import BeautifulSoup response = requests.get("https://www.autohome.com.cn/news/") # 01 发送请求 response.encoding = response.apparent_encoding # 格式转换防止页面中文乱码 自动获得返回数据原来的编码...
阅读全文
摘要:
import requests import re import os import time print("ready....") def downPic(dirs, keyword, imgId): headers_downPic = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9...
阅读全文