Permalink
Browse files

use profile_image_url_https instead of profile_image_url

  • Loading branch information...
domenkozar committed Feb 9, 2013
1 parent 1f62c6f commit 67cbb8390701c945a48094795474ca485f092049
Showing with 2 additions and 2 deletions.
  1. +2 −2 twitter.py
View
@@ -1356,7 +1356,7 @@ def NewFromJsonDict(data):
followers_count=data.get('followers_count', None),
favourites_count=data.get('favourites_count', None),
friends_count=data.get('friends_count', None),
profile_image_url=data.get('profile_image_url', None),
profile_image_url=data.get('profile_image_url_https', None),
profile_background_tile = data.get('profile_background_tile', None),
profile_background_image_url = data.get('profile_background_image_url', None),
profile_sidebar_fill_color = data.get('profile_sidebar_fill_color', None),
@@ -2399,7 +2399,7 @@ def GetSearch(self,
# Build user object with new request
temp.user = self.GetUser(urllib.quote(x['from_user']))
else:
temp.user = User(screen_name=x['from_user'], profile_image_url=x['profile_image_url'])
temp.user = User(screen_name=x['from_user'], profile_image_url=x['profile_image_url_https'])
results.append(temp)

0 comments on commit 67cbb83

Please sign in to comment.