分类: Python

1 篇文章

一个爬虫小实例
import requests def get_html(url): r = requests.get(url) html = r.content.decode() return html def parse_data(data): lines = [] url = '' for line in data.split('\n'): if '…