diff --git a/交易/websea_交易.py b/交易/websea_交易.py index 8ea333d..8c946d9 100644 --- a/交易/websea_交易.py +++ b/交易/websea_交易.py @@ -1,14 +1,11 @@ - import time import asyncio import datetime - from tqdm import * from loguru import * from DrissionPage import * -from bs4 import BeautifulSoup from curl_cffi import requests from telethon import TelegramClient @@ -163,15 +160,6 @@ class WeexTransaction: return datas - def remove_tags_and_spaces(self, html): - # 创建 BeautifulSoup 对象 - soup = BeautifulSoup(html, 'html.parser') - # 获取去除标签后的文本 - text = soup.get_text() - # 去除所有空格 - text = text.replace(" ", "") - return text - def to_do_page(self): # self.page.get("https://www.weeaxs.site/zh-CN/futures/demo-trading/ETH-SUSDT") diff --git a/交易/weex_交易.py b/交易/weex_交易.py index 3d91a79..1636e5a 100644 --- a/交易/weex_交易.py +++ b/交易/weex_交易.py @@ -6,7 +6,6 @@ from tqdm import * from loguru import * from DrissionPage import * -from bs4 import BeautifulSoup from curl_cffi import requests from telethon import TelegramClient @@ -163,15 +162,6 @@ class WeexTransaction: return datas - def remove_tags_and_spaces(self, html): - # 创建 BeautifulSoup 对象 - soup = BeautifulSoup(html, 'html.parser') - # 获取去除标签后的文本 - text = soup.get_text() - # 去除所有空格 - text = text.replace(" ", "") - return text - def to_do_page(self): # self.page.get("https://www.weeaxs.site/zh-CN/futures/demo-trading/ETH-SUSDT") @@ -355,7 +345,7 @@ class WeexTransaction: self.pbar.refresh() if current_minute not in [0, 1, 2, 3, 4, 5, 30, 31, 32, 33, 34, ]: # 判断是否是 新的30分钟了 - # if current_minute not in range(60): # 判断是否是 新的30分钟了 + # if current_minute not in range(60): # 判断是否是 新的30分钟了 time.sleep(10) continue