问题描述
http://cidash.netact.nsn-rdnet.net/ciexecpools/list.php?show=name,offlinereason
需要grep oly自动锁定的内容
ex:clab511_main; AutoLock:netact17_2 / product / 17.2.1.133;
clab739_main; AutoLock:netact / product / 99.16。 11.0.109;
我尝试过:
导入请求
link =http://cidash.netact.nsn-rdnet.net/ciexecpools/list.php?show=name,offlinereason
f = requests.get(link)
print f.text
http://cidash.netact.nsn-rdnet.net/ciexecpools/list.php?show=name,offlinereason"
after running this link i need to grep oly the content which is auto locked
ex: clab511_main;AutoLock: netact17_2/product/17.2.1.133;
clab739_main;AutoLock: netact/product/99.16.11.0.109;
What I have tried:
import requests
link = "http://cidash.netact.nsn-rdnet.net/ciexecpools/list.php?show=name,offlinereason"
f = requests.get(link)
print f.text
推荐答案
这篇关于如何使用Python grep从url返回的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!