Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
SenZmaKi committed Jun 30, 2024
1 parent ac72fa3 commit 7f7d42a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion senpwai/scrapers/pahe/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def get_kwik_page_link(
driver.get(pahewin_link)
pahewin_html_page = driver.page_source
else:
print("overwrode selenk")
print("overwrode selenk qq")
pahewin_html_page = response.text
print(pahewin_html_page)
kwik_page_link = cast(
Expand Down
9 changes: 8 additions & 1 deletion senpwai/scrapers/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
from time import time as current_time
from typing import Any, Callable, cast

from common.selenium import BrowserName
from common.selenium import DRIVER_MANAGER, BrowserName
from scrapers.pahe.constants import PAHE_HOME_URL

from senpwai.common.scraper import AnimeMetadata, Download, sanitise_title
from senpwai.common.static import ROOT_DIRECTORY
Expand Down Expand Up @@ -555,6 +556,12 @@ def test_dub_available(site: str, target_result: list[str]) -> tuple[bool, str]:


def run_tests(args: ArgParser):
DRIVER_MANAGER.setup_driver(BrowserName.chrome)
DRIVER_MANAGER.driver.get(PAHE_HOME_URL)
print(DRIVER_MANAGER.driver.page_source)
print(DRIVER_MANAGER.driver.get_cookies())
return

was_hls = False
if args.arg_in_group_was_passed(COMMANDS):
results = test_search(args.anime_title, args.site)
Expand Down

0 comments on commit 7f7d42a

Please sign in to comment.