From 0f79a505a547c8ca6527e3047ba6624c4f02fa89 Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Fri, 1 Mar 2024 16:55:38 +0100 Subject: [PATCH] defined instagram interface --- image_download/classes.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/image_download/classes.py b/image_download/classes.py index 53c2cf8..601c1cf 100644 --- a/image_download/classes.py +++ b/image_download/classes.py @@ -31,30 +31,6 @@ class Instagram: def close(self) -> None: self.webdriver.close() - # def load_post(self, url: str) -> None: - # """Load post webpage.""" - # logging.debug("getting %s", url) - # self.webdriver.get(url) - # logging.debug("finished getting url") - # # handle popup - # try: - # logging.debug("waiting for cookie popup to appear") - # # wait forpopup to appear - # elem = WebDriverWait( - # driver=self.webdriver, - # timeout=60 - # ).until( - # expected_conditions.presence_of_element_located( - # (By.XPATH, "//*[text()='Decline optional cookies']") - # ) - # ) - # logging.debug("located button") - # except TimeoutError: - # logging.error("Timeout before cookie popup appeared.") - # else: - # elem.click() - # logging.debug("clicked button") - def get_image_url_list(self, url: str) -> list[str]: """Get list of image urls from post.""" logging.debug('getting %s', url)