Skip to content

天眼查爬虫&企查查爬虫,指定关键字爬取公司信息

License

Notifications You must be signed in to change notification settings

chenanu123/company-crawler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

天眼查、企查查

公司信息爬虫


使用说明

  1. 设置数据源
    MysqlConfig = {
        'develop': {
            'host': '192.168.1.103',
            'port': 3306,
            'db': 'enterprise',
            'username': 'root',
            'password': 'root@123'
        }
    }
    
  2. 执行db/data.sql生成数据结构
  3. 配置IP代理config/settings
    # 全局代理控制
    GLOBAL_PROXY = True
    PROXY_POOL_URL = "http://localhost:5010"
    
  4. 设置爬取关键字qichacha&tianyancha
    keys = ['Google'] # 设置爬取列表
    crawler.load_keys(keys)
    crawler.start()
    

PS:建议使用IP代理 + 随机UA,否者一定会被ban

  1. 随机UA推荐fake_useragent
  2. 代理池推荐proxy_pool

About

天眼查爬虫&企查查爬虫,指定关键字爬取公司信息

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%