diff --git a/printer.py b/printer.py index f2d7750..fe84b09 100755 --- a/printer.py +++ b/printer.py @@ -6,6 +6,8 @@ TODO: Figure out if/when to show unshortened URLs in links contained in Tweets. TODO: Figure out bimap mode so stuff that is not latin-1 encodable can still be printed. """ +__version__ = "0.0.1" + import argparse import datetime import html @@ -182,13 +184,6 @@ class StreamListener(tweepy.StreamListener): if status_code == 420: return False -""" ------------------------------------------------- -@handle (name) xxxx-xx-xx xx:xx:xx -RT by @handle (name) xxxx-xx-xx xx:xx:xx ----------------------------- -""" - def check_rate_limits(api): rate_limits = api.rate_limit_status() @@ -203,7 +198,6 @@ def check_rate_limits(api): def main(): - parser = argparse.ArgumentParser(description="Prints tweets to a thermal printer") parser.add_argument("-p", "--printer", type=str, metavar="printer", help="Which thermal printer to use (e.g. /dev/usb/lp1). If empty nothing will be printed.")