从国家统计局爬取行政区划数据
import requests
from bs4 import BeautifulSoup
_main_url = 'http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2020/'
def create_parser(url, encoding='gbk'):
response = requests.get(url)
response.encoding = encoding
return BeautifulSoup(respon.
原创
2021-06-13 19:29:04 ·
997 阅读 ·
0 评论