斯文黑裤

文章
4
资源
0
加入时间
3年1月16天

python爬虫——正则获取手机号

用正则匹配网页手机号安装re模块、requests库、beautifulsoup4库cmd → pip install re → 回车cmd → pip install requests → 回车cmd → pip install beautifulsoup4 → 回车调用import requestsimport refrom bs4 import BeautifulSoup调用网址r = requests.get(“http://www.haomahao.com/”)编写正则表达