123456789101112131415161718192021 |
- #!/usr/bin/env python
- # -*- encoding: utf-8 -*-
- '''
- @Contact : liuyuqi.gov@msn.cn
- @Time : 2020/09/07 16:39:11
- @License : Copyright © 2017-2020 liuyuqi. All Rights Reserved.
- @Desc : 入口
- '''
- import crawl_car as cc
- site = r"https://sh.122.gov.cn/#/noticeDetail?fzjg=%E6%B2%AAA&tjyf=202007&fwdmgl=6003"
- chormepath = r"D:/Program-Files/browser-driver/chromedriver.exe"
- if __name__ == '__main__':
- crawler = cc.CrawlCar(
- site=site,
- save_folder='./data',
- browser=cc.BrowserType.CHROME,
- driver=chormepath # 驱动程序路径,firefox不需要
- )
- crawler.start()
|