当前位置:网站首页>Beautiful girls
Beautiful girls
2022-07-29 07:59:00 【Zhao [email protected]】
import requests ,re
from fake_useragent import UserAgent
import time,os
# Request web page
url="https://www.vmgirls.com/13344.html"
headers ={
"User-Agent":UserAgent().chrome
}
# Show your identity
r=requests.get(url,headers=headers)
#print(r.request.headers) # Check the header information
#print(r.text)
html =r.text
# Parse web pages
dirname=re.findall('<h1 class="post-title h3">(.*?)</h1>',html)[0]
result =re.findall('<a href="(.*?)" alt=".*?" title=".*?">',html)
if not os.path.exists(dirname):
os.mkdir(dirname)
# Save sheet
for url in result:
time.sleep(1)
# The name of the picture
filename=url.split("/")[-1]
print(" Downloading :"+filename)
r = requests.get(url, headers=headers)
with open (dirname+ "/" +filename,"wb")as f:
f.write(r.content)
版权声明
本文为[Zhao [email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/210/202207290520357760.html
边栏推荐
- File system I
- Mutationobserver document learning
- Implementation of simple cubecap+fresnel shader in unity
- 下推分析的限制
- [cryoEM] Introduction to FSC, Fourier shell correlation
- How to draw an excellent architecture diagram
- Solve the problem that the disk is full due to large files
- Realize the effect of changing some colors of a paragraph of text
- @JsonSerialize注解的使用
- UE4 principle and difference between skylight and reflecting sphere
猜你喜欢

UE4 principle and difference between skylight and reflecting sphere

Day 014 二维数组练习

Jianmu continuous integration platform v2.5.2 release

Useful websites

NLP introduction + practice: Chapter 5: using the API in pytorch to realize linear regression

Dynamic thresholds buffer management in a shared buffer packet switch paper summary

LANDSCAPE

2022 Shenzhen Cup Title A: get rid of "scream effect" and "echo room effect" and get out of the "information cocoon room"

Up sampling deconvolution operation
功能自动化测试实施的原则以及方法有哪些?
随机推荐
Chaos and future of domestic digital collections
Shell script - global variables, local variables, environment variables
Autojs微信研究:微信自动发送信息机器人最终成品(有效果演示)
[introduction to cryoelectron microscopy] Caltech open class course notes part 3:image formation
Dynamic thresholds buffer management in a shared buffer packet switch paper summary
C# 之 volatile关键字解析
Character shader exercise
Implementation of simple matcap+fresnel shader in unity
Technology sharing | quick intercom integrated dispatching system
Detailed explanation of two modes of FTP
《nlp入门+实战:第五章:使用pytorch中的API实现线性回归》
MySQL 45 | 08 is the transaction isolated or not?
Unity beginner 2 - tile making and world interaction (2D)
The new generation of public chain attacks the "Impossible Triangle"
As long as flutter is data, it will be judged null
Rotation in model space and rotation in world space
Data warehouse modeling, what is wide table? How to design? Advantages and disadvantages
Detailed explanation of the find command (the most common operation of operation and maintenance at the end of the article)
How to draw an excellent architecture diagram
In JS, 0 means false, and non-0 means true