diff --git a/automaton/devtools.py b/automaton/devtools.py index 258e6af..d9749b0 100644 --- a/automaton/devtools.py +++ b/automaton/devtools.py @@ -1,10 +1,9 @@ import asyncio +import httpx import json import re import traceback import urllib.parse as parser - -import httpx import websockets from loguru import logger diff --git a/automaton/spider/captcha/captcha.py b/automaton/spider/captcha/captcha.py index 7d9f409..88a78fc 100644 --- a/automaton/spider/captcha/captcha.py +++ b/automaton/spider/captcha/captcha.py @@ -1,10 +1,9 @@ -import traceback -from os import path - import cv2 import numpy as np +import traceback from loguru import logger from numpy import average, dot, linalg +from os import path base_path = path.join(path.split(__file__)[0], 'models') diff --git a/automaton/spider/spider.py b/automaton/spider/spider.py index 6b50430..9bd4f1d 100644 --- a/automaton/spider/spider.py +++ b/automaton/spider/spider.py @@ -1,8 +1,7 @@ +import httpx import json import traceback from hashlib import md5 - -import httpx from loguru import logger from .captcha import recognize diff --git a/automaton/utils.py b/automaton/utils.py index 0291386..db152cb 100644 --- a/automaton/utils.py +++ b/automaton/utils.py @@ -1,8 +1,7 @@ import traceback -from random import uniform, randint - from bs4 import BeautifulSoup from loguru import logger +from random import uniform, randint from configs import configs from .devtools import Browser diff --git a/main.py b/main.py index 62213ef..ea401ff 100644 --- a/main.py +++ b/main.py @@ -1,8 +1,9 @@ -import sys +import argparse import asyncio +import sys from loguru import logger + from automaton import utils -import argparse class Help(object):