企查查 根据 名称爬取数据
作者:互联网
# -*- coding-8 -*-
import json
import requests
from bs4 import BeautifulSoup
import os
import time
import db
base_url = 'https://www.qcc.com/web/search?key='
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Accept-Encoding': 'gzip, deflate, br',
'Connection': 'keep-alive',
'Cookie': 'QCCSESSID=q5dl9g8217p5pv2ispkh6bf4o0; XXXXXqcc_did=faff4ad2-718e-456f-879b-630037fd15f8; acw_tc=701ec4a216352322479947098ed569901985ab75474636bcc80c5f5399; zg_did=%7B%22did%22%3A%20%2217cbb50b1db261-04e0ec066ea9ba-561a145a-100200-17cbb50b1dc99b%22%7D; zg_294c2ba1ecc244809c552f8f6fd2a440=%7B%22sid%22%3A%201635230200290%2C%22updated%22%3A%201635233136779%2C%22info%22%3A%201635230200297%2C%22superProperty%22%3A%20%22%7B%7D%22%2C%22platform%22%3A%20%22%7B%7D%22%2C%22utm%22%3A%20%22%7B%7D%22%2C%22referrerDomain%22%3A%20%
标签:查查,22%,3A%,爬取,7B%,20%,名称,import,2C% 来源: https://blog.csdn.net/Allure_LoveU/article/details/120974139