filter blank page
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user