爬虫

# _*_ coding:utf-8_*_ import requests from bs4 import BeautifulSoup import re def download_page(url): headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"} r = requests.get(url, headers=headers) return r.content def get_...
python | 2018-08-25 19:24 | 阅读 401 次 | 评论 1 条
浏览161532次
最新评论