csaftoiu / yahoo-groups-backup

A python script to backup the contents of private Yahoo! groups.
The Unlicense
37 stars 18 forks source link

yahoo-groups-backup.py: Add command option for webdriver #4

Closed bitstein closed 8 years ago

bitstein commented 8 years ago

This adds an optional command to enter a selenium webdriver, for instance, PhantomJS. It defaults to Firefox.

csaftoiu commented 8 years ago

Ah nice :). Glad someone is playing around with this.

A nicer way to do this is to use docopt's default capabilities - basically, add [default: firefox] to the option's line in the docstring, and docopt will set that as the default. Check out how --mongo-host works, for example. I would've done this for login & password too but couldn't figure out how to give it multiple defaults on one line.

bitstein commented 8 years ago

Updated.