[pinterest] fix 'pin.it' extractor

it really was just the single '/' at the end of the url_shortener URL
This commit is contained in:
Mike Fährmann
2023-05-03 18:53:56 +02:00
parent 657b6a9100
commit 4d415376d1

View File

@@ -370,7 +370,7 @@ class PinterestPinitExtractor(PinterestExtractor):
self.shortened_id = match.group(1)
def items(self):
url = "https://api.pinterest.com/url_shortener/{}/redirect".format(
url = "https://api.pinterest.com/url_shortener/{}/redirect/".format(
self.shortened_id)
response = self.request(url, method="HEAD", allow_redirects=False)
location = response.headers.get("Location")