Commit f6a0306b authored by Cody Zacharias's avatar Cody Zacharias Committed by GitHub

Add until

parent e6cfcdda
...@@ -91,6 +91,8 @@ async def getUrl(init): ...@@ -91,6 +91,8 @@ async def getUrl(init):
url+= "%20until%3A{0.year}-1-1".format(arg) url+= "%20until%3A{0.year}-1-1".format(arg)
if arg.since != None: if arg.since != None:
url+= "%20since%3A{0.since}".format(arg) url+= "%20since%3A{0.since}".format(arg)
if arg.until != None:
url+= "%20until%3A{0.until}".format(arg)
if arg.fruit: if arg.fruit:
url+= "%20myspace.com%20OR%20last.fm%20OR" url+= "%20myspace.com%20OR%20last.fm%20OR"
url+= "%20mail%20OR%20email%20OR%20gmail%20OR%20e-mail" url+= "%20mail%20OR%20email%20OR%20gmail%20OR%20e-mail"
...@@ -462,6 +464,7 @@ if __name__ == "__main__": ...@@ -462,6 +464,7 @@ if __name__ == "__main__":
ap.add_argument("-es", "--elasticsearch", help="Index to Elasticsearch") ap.add_argument("-es", "--elasticsearch", help="Index to Elasticsearch")
ap.add_argument("--year", help="Filter Tweets before specified year.") ap.add_argument("--year", help="Filter Tweets before specified year.")
ap.add_argument("--since", help="Filter Tweets sent since date (Example: 2017-12-27).") ap.add_argument("--since", help="Filter Tweets sent since date (Example: 2017-12-27).")
ap.add_argument("--until", help="Filter Tweets sent until date (Example: 2017-12-27).")
ap.add_argument("--fruit", help="Display 'low-hanging-fruit' Tweets.", action="store_true") ap.add_argument("--fruit", help="Display 'low-hanging-fruit' Tweets.", action="store_true")
ap.add_argument("--tweets", help="Display Tweets only.", action="store_true") ap.add_argument("--tweets", help="Display Tweets only.", action="store_true")
ap.add_argument("--verified", help="Display Tweets only from verified users (Use with -s).", action="store_true") ap.add_argument("--verified", help="Display Tweets only from verified users (Use with -s).", action="store_true")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment