Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

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

Open
rdscorreia74 opened this issue Aug 26, 2014 · 4 comments
Open

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

rdscorreia74 opened this issue Aug 26, 2014 · 4 comments

Comments

@rdscorreia74
Copy link

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
Copy link
Owner

richq commented Aug 27, 2014

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
Copy link
Author

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
Copy link
Owner

richq commented Aug 27, 2014

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants