PYthon 爬取化妆公司数据
代码展示
在这里插入代码片import requests
import json
url = "http://scxk.nmpa.gov.cn:81/xk/itownet/portalAction.do?method=getXkzsList"
# UA伪装
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0'
}
# 批量获取不同企业的id值
# POST请求携带的数据
data = {
"on": "true",
"page": "1",
"pageSize": "15",
"productName": "",
"c