当前位置:网站首页>Reptile learning 4 winter vacation learning series (1)
Reptile learning 4 winter vacation learning series (1)
2022-07-04 11:19:00 【Kosisi】
Crawler learning 4
Save a little for notes , The complete code deleted .
Preface : Learn something else in winter vacation to relax , Tired of writing papers !
Course :B standing
Duration :20220213
cookies Simple request
get cookie; With cookies Ask for the target url, Then find the corresponding return data .
The key step is cookies, Or let the browser know that you are holding cookies Go and ask him .
One trick is to use session function ,session It can be thought of as a series of requests , In this process cookies Will not be lost , It's equivalent to a continuous conversation between two people , Understand the process of the dialogue between the two sides .
Another way is to go directly through get Method , You need to get headers Information , Pass the parameter to .
session = requests.session()
# usage
resp = session.post(login_url, data=data)
shelf_resp = session.get(shelf_url)
边栏推荐
- Serialization oriented - pickle library, JSON Library
- First article
- Detailed array expansion analysis --- take you step by step analysis
- Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
- Canoe - the third simulation project - bus simulation - 3-1 project implementation
- Local MySQL forget password modification method (Windows) [easy to understand]
- I What is security testing
- Canoe - the third simulation project - bus simulation - 3-2 project implementation
- QQ get group settings
- Summary of collection: (to be updated)
猜你喜欢

Postman interface test

QQ group collection

20 kinds of hardware engineers must be aware of basic components | the latest update to 8.13

2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected

XMIND installation

Properties and methods of OS Library

F12 clear the cookies of the corresponding web address

Summary of Shanghai Jiaotong University postgraduate entrance examination module firewall technology

Usage of case when then else end statement

Oracle11g | getting started with database. It's enough to read this 10000 word analysis
随机推荐
CAPL: on sysVar_ Update difference on sysvar
Personal thoughts on the development of game automation protocol testing tool
Elevator dispatching (pairing project) ①
JMeter correlation technology
Canoe - the third simulation project - bus simulation-1 overview
Heartbeat error attempted replay attack
SSH principle and public key authentication
software test
Canoe-the second simulation project-xvehicle-1 bus database design (idea)
1. Circular nesting and understanding of lists
Four sorts: bubble, select, insert, count
Elevator dispatching (pairing project) ②
Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
Replace() function
Iterator generators and modules
Configure SSH key to realize login free
Basic function exercises
Understanding of object
2、 Operators and branches
2021-10-20