赞
踩
代码仅供学习交流,请勿用于非法用途
# -*- coding:utf-8 -*- import requests import execjs import hashlib import json import cv2 import os import random from selenium import webdriver import configparser import base64 import numpy as np # ----------- 浏览器模块 ----------- options = webdriver.ChromeOptions() options.add_argument("--headless") options.add_argument("log-level=2") # ----------- 配置模块 ----------- cf = configparser.ConfigParser() try: cf.read(os.getcwd() + "/conf.ini", encoding="utf-8-sig") except Exception as e: print("程序目录下不存在conf.ini配置文件~") exit(0) def getConf(sec, key): try: return cf.get(sec, key) except Exception as e: print(e) print("未得到以下配置:" + sec + " - " + key) exit
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。