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

Flickr publish support #432

Closed
tantek opened this issue Jul 23, 2015 · 5 comments
Closed

Flickr publish support #432

tantek opened this issue Jul 23, 2015 · 5 comments
Assignees
Labels

Comments

@tantek
Copy link
Contributor

@tantek tantek commented Jul 23, 2015

Flickr has a pretty good API, and it's one of the older more well-established photo silos, so it would be a natural place to POSSE to.

Would be nice to be able to automatically create a Flickr POSSE copy photo/video/comment/favorite from indie photo/video posts, Flickr comment from indie reply posts that were in-reply-to a Flickr photo/video, and Flickr favorites from indie likes of Flickr posts.

Specifically:

  • photo -> Flickr photo
  • video -> Flickr video
  • reply in-reply-to a Flickr post -> Flickr comment on that post
  • like of a Flickr post -> Flickr favorite on that post

See also related: issue #225

@snarfed snarfed changed the title Bridgy Publish support posts of various types to Flickr Flickr publish support Oct 19, 2015
@kylewm kylewm self-assigned this Nov 15, 2015
kylewm added a commit to kylewm/bridgy that referenced this issue Nov 16, 2015
kylewm added a commit to kylewm/bridgy that referenced this issue Nov 16, 2015
@kylewm
Copy link
Collaborator

@kylewm kylewm commented Nov 16, 2015

@snarfed
Copy link
Owner

@snarfed snarfed commented Nov 16, 2015

wow, that's awesome, congratulations! so fast too. thank you! and you may still beat me on FB person tagging since it's not in the docs either :P

@kylewm
Copy link
Collaborator

@kylewm kylewm commented Nov 16, 2015

@tantek ran into an error posting a Instagram photo to Flickr. Maybe, hopefully, transient?

2015-11-16 07:14:40.771280 D publishing object type note to Flickr
2015-11-16 07:14:45.788970 W Error: Deadline exceeded while waiting for HTTP response from URL: https://scontent-lax3-1.cdninstagram.com/hphotos-xpt1/t51.2885-15/e35/12237292_1642476692689000_1811828067_n.jpg
Traceback (most recent call last):
File "/base/data/home/apps/s~brid-gy/7.388602505191055114/publish.py", line 210, in _run
result = self.attempt_single_item(item)
File "/base/data/home/apps/s~brid-gy/7.388602505191055114/publish.py", line 333, in attempt_single_item
result = self.source.gr_source.create(obj, include_link=not omit_link)
File "/base/data/home/apps/s~brid-gy/7.388602505191055114/local/lib/python2.7/site-packages/granary/flickr.py", line 90, in create
return self._create(obj, preview=False, include_link=include_link)
File "/base/data/home/apps/s~brid-gy/7.388602505191055114/local/lib/python2.7/site-packages/granary/flickr.py", line 156, in _create
resp = self.upload_photo(params, urllib2.urlopen(image_url))
File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/urllib2.py", line 1187, in do_open
r = h.getresponse(buffering=True)
File "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/gae_override/httplib.py", line 526, in getresponse
raise HTTPException(str(e))
HTTPException: Deadline exceeded while waiting for HTTP response from URL: https://scontent-lax3-1.cdninstagram.com/hphotos-xpt1/t51.2885-15/e35/12237292_1642476692689000_1811828067_n.jpg
@kylewm
Copy link
Collaborator

@kylewm kylewm commented Nov 16, 2015

thanks @snarfed and thanks for reviewing right away 🙏

@snarfed
Copy link
Owner

@snarfed snarfed commented Nov 30, 2015

this is done, right? yay! tentatively closing.

@snarfed snarfed closed this Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants