richq / folders2flickr

Upload files to flickr
Other
102 stars 38 forks source link

Readme not clear enough, can be used without web browser? #34

Open rdscorreia74 opened 9 years ago

rdscorreia74 commented 9 years ago

Hi, I read the readme but didn't quite understand if a web browser is needed. Original folders2flickr google project says that on first run it will open a web browser to get a token. Does your fork have the same need and works the same way on first run? The reason why I'm asking is because I would be running folders2flickr on a headless-server, one that doesn't have a keyboard, nor a mouse and nor a video card with a vga. Doesn't even have X11/Xorg installed on it. Can I use folders2flickr on this server? Thanks in advance. Cheers

richq commented 9 years ago

Right... yes, yes you would need a browser. However, I think you could run the program first on a non-headless machine, then copy over the token file that's generated.

Alternatively, as it uses the python webbrowser module, this opens up w3m if there's no $DISPLAY set. Not sure how far that would get you with logging in though since I bet it requires JavaScript or something funky.

rdscorreia74 commented 9 years ago

Hi richq. Thank you very much for your reply. The idea of running it on a non-headless machine and copy the token to the headless machine is nice. Did you refer that as a real option that you know that will work or is it just a long shot that might just work?

Yea, I've thought about running a text-mode web browser but most web sites these days need javascript and by such it probably wouldn't work.

richq commented 9 years ago

Yes, I think copying the file could be a real workaround solution. The file is just ".flickrToken" in the current directory, and copying it to another machine should give it permission to write there.

In fact I'm pretty sure I've run the sync over ssh at home when I've been on another machine without thinking about it, and it works since the token is cached there.

rdscorreia74 commented 9 years ago

Excellent. Will give it a try. Thanks for the tips. :-)