Skip to content

Instantly share code, notes, and snippets.

View mlzxgzy's full-sized avatar
🏠
Working from home

LPLaser mlzxgzy

🏠
Working from home
View GitHub Profile
@mlzxgzy
mlzxgzy / RegionSpider.py
Last active November 30, 2021 07:45
国家统计局地区爬虫 - 仅省市区 - Python3
import re
import time
import bs4
import requests
from bs4 import BeautifulSoup as bs, Tag
from urllib.parse import urljoin
import json
BASE_URL = 'http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/'