Added constant for allowing only published posts

If you'd like to only allow published posts through, then go ahead and
set the ONLY_PUBLISHED constant to True.

TODO: Make the script use getopts and the like to take arguments.