Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
extractors/pinterest: 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
iawia002 committed Mar 15, 2018
1 parent 096629c commit 2e2f762
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lulu/extractors/pinterest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def prepare(self, **kwargs):
r'</script>'
)
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'<meta property="twitter:image:src" name="twitter:image:src" '
Expand Down

0 comments on commit 2e2f762

Please sign in to comment.