import requests
from bs4 import BeautifulSoup
import json
import lxml
import re
import os
import os.path
import string
#要分大小写
path = '//nas/LargeSave/高清图像数据/httpswww.pexels.comzh-tw/'
def get_image(page,count):
url=f'https://www.pexels.com/zh-tw/?format=js&seed={page}&type='
res=requests.get(url,headers={'Accept': 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01',
'Accept-Language':'zh-CN,zh;q=0.9',
'Referer':'https://www.pexels.com/zh-tw/',
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39',
'Cookie':'_ga=GA1.2.953246023.1646290358; _hjSessionUser_171201=
使用fiddlers进行爬虫
最新推荐文章于 2024-07-07 23:58:43 发布