当前位置:网站首页>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)
边栏推荐
- I What is security testing
- Canoe: distinguish VT, VN and vteststudio from their development history
- Capl: timer event
- JMeter Foundation
- Understanding of object
- Simple understanding of string
- Iterator generators and modules
- Analysis function in SQL
- Appscan installation steps
- Elevator dispatching (pairing project) ④
猜你喜欢
Send a request using paste raw text
Canoe - the third simulation project - bus simulation - 2 function introduction, network topology
Discussion | has large AI become autonomous? Lecun, chief scientist of openai
Fundamentals of software testing
Replace() function
Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
Appscan installation steps
Serialization oriented - pickle library, JSON Library
Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
Day01 preliminary packet capture
随机推荐
Solaris 10网络服务
Attributes and methods in math library
Using terminal connection in different modes of virtual machine
If function in SQL
Local MySQL forget password modification method (Windows) [easy to understand]
本地Mysql忘记密码的修改方法(windows)[通俗易懂]
Video analysis
Elevator dispatching (pairing project) ④
JMeter common configuration components and parameterization
Locust learning record I
Exceptions and exception handling
Local MySQL forgot the password modification method (Windows)
Swagger and OpenAPI
Canoe the second simulation engineering xvehicle 3 CAPL programming (operation)
2021-10-20
Test question bank management system - database design [easy to understand]
Replace() function
Canoe - the third simulation project - bus simulation - 2 function introduction, network topology
Appscan installation error: unable to install from Net runtime security policy logout appscan solution
VPS安装Virtualmin面板