Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instagram added an id field for videos. #3

Merged
merged 1 commit into from
Oct 13, 2017
Merged

Instagram added an id field for videos. #3

merged 1 commit into from
Oct 13, 2017

Conversation

tianchu
Copy link

@tianchu tianchu commented Oct 13, 2017

facebookarchive#256
wkoot#14

It has been causing errors like below:

psp-app1 PhotoContestPulling 2017-10-13 03:30:02,848 11001 140111869425408 ERROR
PhotoContestPulling Failed pulling instagram media against hashtag myrecipe for campaigns [<Coupons.Coupons object at 0x3fca250>]
Traceback (most recent call last):
File "/home/offerpop-app/releases/20171005151209/Scripts/../Engine/offerpop/jobs/PhotoContestPulling.py", line 44, in pull_instagram_media
recent_media, pagination = api.tag_recent_media(tag_name=hashtag)
File "/opt/offerpop/python/lib/python2.7/site-packages/instagram/bind.py", line 197, in _call
return method.execute()
File "/opt/offerpop/python/lib/python2.7/site-packages/instagram/bind.py", line 189, in execute
content, next = self._do_api_request(url, method, body, headers)
File "/opt/offerpop/python/lib/python2.7/site-packages/instagram/bind.py", line 151, in _do_api_request
obj = self.root_class.object_from_dictionary(entry)
File "/opt/offerpop/python/lib/python2.7/site-packages/instagram/models.py", line 87, in object_from_dictionary
new_media.videos[version] = Video.object_from_dictionary(version_info)
File "/opt/offerpop/python/lib/python2.7/site-packages/instagram/models.py", line 13, in object_from_dictionary
return cls(**entry_str_dict)
TypeError: init() got an unexpected keyword argument 'id'

@tianchu tianchu merged commit 3ebf3ca into master Oct 13, 2017
@tianchu tianchu deleted the fix-video-id branch October 13, 2017 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant