[pinterest] fix 'pin.it' extractor
it really was just the single '/' at the end of the url_shortener URL
This commit is contained in:
@@ -370,7 +370,7 @@ class PinterestPinitExtractor(PinterestExtractor):
|
|||||||
self.shortened_id = match.group(1)
|
self.shortened_id = match.group(1)
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
url = "https://api.pinterest.com/url_shortener/{}/redirect".format(
|
url = "https://api.pinterest.com/url_shortener/{}/redirect/".format(
|
||||||
self.shortened_id)
|
self.shortened_id)
|
||||||
response = self.request(url, method="HEAD", allow_redirects=False)
|
response = self.request(url, method="HEAD", allow_redirects=False)
|
||||||
location = response.headers.get("Location")
|
location = response.headers.get("Location")
|
||||||
|
|||||||
Reference in New Issue
Block a user