alexis-mignon / python-flickr-api

A python implementation of the Flickr API
BSD 3-Clause "New" or "Revised" License
366 stars 108 forks source link

Can't download videos #136

Open prensing opened 12 months ago

prensing commented 12 months ago

Sorry, I dug into this and am just getting no where. Hopefully someone can help.

I am trying to write/update a script to maintain a full backup of my Flickr (pro) account, and it is mostly working. My stumbling block is that it just won't download videos. I get to the part where it has the URL, such as: https://www.flickr.com/photos/ligerbots/18250468150/play/orig/36f52680b5/ but the script gets a 404 response. If I put that same URL into a browser (which is logged into my Flickr account), it seems to download just fine.

I read that downloading Original size videos is only allowed for the owner, so I am guess that my script is not logging in and authenticating properly. But I don't know how to test that and debug it. Most of my script was "borrowed" from others, and then tweaked for how I want the output. I do have an API key and secret and did the OAuth login (with "read" permissions).

Any help and suggestions would be appreciated.

beaufour commented 12 months ago

Sounds like it's probably authentication related, but hard to say without knowing exactly what you are doing. I maintain this tool: https://github.com/beaufour/flickr-download which is based on the API here and I know works. Maybe you can use that? Or you can crib some stuff from that?