From d03be03aebf08b2e43bd9c870eac4db2c495881a Mon Sep 17 00:00:00 2001 From: powe97 <116031952+powe97@users.noreply.github.com> Date: Fri, 1 Mar 2024 01:50:01 -0500 Subject: [PATCH] Move debug print to be more accurate --- transfer_scraper/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transfer_scraper/main.py b/transfer_scraper/main.py index e5de327..6c751c3 100644 --- a/transfer_scraper/main.py +++ b/transfer_scraper/main.py @@ -159,7 +159,6 @@ def main(): if state["inst_pg"] != 1: while curr_page != state["inst_pg"]: - print(f"Jumping to institution page {curr_page}", file=sys.stderr) jumpable_pages = { int(x.get_attribute("href").split("'")[3][5:]): x for x in driver.find_elements( @@ -181,6 +180,7 @@ def main(): else: jumpable_pages[max(jumpable_pages)].click() curr_page = max(jumpable_pages) + print(f"Jumping to institution page {curr_page}", file=sys.stderr) wait(EC.staleness_of(page)) sleep(random.uniform(3, 6))