From 2e2f7622977ad8e2b5a2cec2d57895dcda985773 Mon Sep 17 00:00:00 2001 From: iawia002 Date: Thu, 15 Mar 2018 20:49:41 +0800 Subject: [PATCH] =?UTF-8?q?extractors/pinterest:=20=F0=9F=94=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lulu/extractors/pinterest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lulu/extractors/pinterest.py b/lulu/extractors/pinterest.py index d9f4915..8d19ae3 100644 --- a/lulu/extractors/pinterest.py +++ b/lulu/extractors/pinterest.py @@ -37,10 +37,10 @@ def prepare(self, **kwargs): r'' ) data = json.loads(data) - keys = list(data['resources']['data']['PinResource'].keys()) - orig_img = data['resources']['data']['PinResource'][keys[0]]['data'][ - 'images' - ]['orig']['url'] + keys = list(data['resources']['data']['PinPageResource'].keys()) + orig_img = data['resources']['data']['PinPageResource'][keys[0]][ + 'data' + ]['images']['orig']['url'] twit_img = match1( content, r'