Pytest整体框架
![](https://img.haomeiwen.com/i3968643/f7f946e957c227ff.png)
访问网页步骤
![](https://img.haomeiwen.com/i3968643/679f8306f0326327.png)
HTTP资源
![](https://img.haomeiwen.com/i3968643/3e8155525c6dfacd.png)
选XHR,自动把常用的XML格式的请求筛选出来
![](https://img.haomeiwen.com/i3968643/8d7c1f6e879956d5.png)
请求 URL:
https://m.douban.com/rexxar/api/v2/movie/recommend?refresh=0&start=0&count=20&selected_categories=%7B%7D&uncollect=false&tags=
请求方法:
GET
状态代码:
200 OK
远程地址:
120.53.130.158:443
引用者策略:
unsafe-url
Access-Control-Allow-Credentials:
true
Access-Control-Allow-Headers:
*
Access-Control-Allow-Methods:
GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin:
https://movie.douban.com
Cache-Control:
must-revalidate, no-cache, private
Connection:
keep-alive
Content-Encoding:
br
Content-Type:
application/json; charset=utf-8
Date:
Tue, 06 Feb 2024 13:13:27 GMT
Expires:
Sun, 1 Jan 2006 01:00:00 GMT
Keep-Alive:
timeout=30
Pragma:
no-cache
Server:
dae
Strict-Transport-Security:
max-age=15552000
Transfer-Encoding:
chunked
X-Content-Type-Options:
nosniff
X-Dae-App:
frodo
X-Dae-Instance:
rexxar_api
X-Dae-Mountpoint:
True
Accept:
application/json, text/plain, */*
Accept-Encoding:
gzip, deflate, br
Accept-Language:
zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
Connection:
keep-alive
Cookie:
douban-fav-remind=1; ll="108296"; bid=rcgKhoz9NnM; __utma=30149280.14391875.1707225166.1707225166.1707225166.1; __utmc=30149280; __utmz=30149280.1707225166.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmt=1; ap_v=0,6.0; __utmb=30149280.2.10.1707225166
Host:
m.douban.com
Origin:
https://movie.douban.com
Referer:
https://movie.douban.com/explore
Sec-Ch-Ua:
"Not A(Brand";v="99", "Microsoft Edge";v="121", "Chromium";v="121"
Sec-Ch-Ua-Mobile:
?0
Sec-Ch-Ua-Platform:
"Windows"
Sec-Fetch-Dest:
empty
Sec-Fetch-Mode:
cors
Sec-Fetch-Site:
same-site
User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0
![](https://img.haomeiwen.com/i3968643/d7596c0160896d7d.png)
![](https://img.haomeiwen.com/i3968643/ff218097d5684daa.png)
网友评论