mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
update docs/进阶使用/监听浏览器网络.md.
Signed-off-by: 草帽小子 <423311977@qq.com>
This commit is contained in:
parent
5c55f54dd3
commit
9fcd75bb0d
@ -23,7 +23,7 @@ listener.set_targets('JobSearchResult.aspx') # 设置需要监听的url
|
||||
listener.listen(count=10) # 开始监听,接收到10条目标url的请求后停止
|
||||
|
||||
for i in listener.steps():
|
||||
print(i[0].body) # 打印实时打印监听到的内容
|
||||
print(i.body) # 打印实时打印监听到的内容
|
||||
|
||||
listener.stop() #停止监听
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user