diff --git a/src/scrape_up/pinterest/pinterest.py b/src/scrape_up/pinterest/pinterest.py index 14ae7c64..b54a309e 100644 --- a/src/scrape_up/pinterest/pinterest.py +++ b/src/scrape_up/pinterest/pinterest.py @@ -135,3 +135,4 @@ def get_pin_details(self, pin_url): } except Exception as e: return None + diff --git a/src/test/pinterest_test.py b/src/test/pinterest_test.py index b289f506..476a3df9 100644 --- a/src/test/pinterest_test.py +++ b/src/test/pinterest_test.py @@ -17,7 +17,7 @@ def test_get_today(self): self.assertIn("image", topic) def test_get_photo(self): - url = "https://www.pinterest.com/pin/1234567890/" + url = "https://pin.it/1ZhgQA5AG" photo = self.pinterest.get_photo(url) if photo: self.assertIn("alt", photo) @@ -33,7 +33,7 @@ def test_search_pins(self): self.assertIn("image", pin) def test_get_pin_details(self): - pin_url = "https://www.pinterest.com/pin/1234567890/" + pin_url = "https://pin.it/1ZhgQA5AG" details = self.pinterest.get_pin_details(pin_url) if details: self.assertIn("title", details)