摘要:
正则解析红牛分公司 import re import requests res = requests.get('http://www.redbull.com.cn/about/branch') s = res.text name = re.findall("data-title='(.*?)'",s 阅读全文
posted @ 2021-09-26 20:42
雾雨黑白
阅读(39)
评论(0)
推荐(0)
摘要:
爬取链接二手房数据并写入文件 1.先研究单页数据的爬取 2.再研究多页数据的爬取 3.最后研究如何写入文件 (一定要将复杂的功能拆分成多个简单的小步骤 2,3步骤可以交换顺序,可能更简单) 前戏:发现一些小规律 https://sh.lianjia.com/ershoufang/ 省市 https: 阅读全文
posted @ 2021-09-26 19:08
雾雨黑白
阅读(189)
评论(0)
推荐(0)

浙公网安备 33010602011771号