filter blank page

This commit is contained in:
Lei PAN
2022-06-06 23:38:03 +02:00
parent 4d9fca77e3
commit de2e04f926
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def get_random_id_number() -> str:
def write_the_valid_profiles_to_excel():
day_list = ['2022-05-30']
day_list = ['2022-06-02']
collection = []
for day in day_list:
+3
View File
@@ -9,6 +9,7 @@ from typing import Union
from playwright.sync_api import sync_playwright
import params
from check_results import BLANK_URL
from params import PROXY_SERVER, PROXY_PASSWORD
from pojo.ModeEnum import ModeEnum
from pojo.ReserveResultPojo import ReserveResultPojo, PublishType
@@ -235,6 +236,8 @@ class CommandorPage:
def get_errors(self):
# send error result
if self.page.url != BLANK_URL:
# no need to push blank url to db
self.publish_message_to_queue(self.contact, PublishType.ERROR, self.page.url)
try:
items = self.page.query_selector("div.alert")