Commit ea5dcfca authored by Cody Zacharias's avatar Cody Zacharias

Added --replies

parent c0251030
......@@ -118,6 +118,10 @@ def initialize(args):
c.Index_users = args.index_users
c.Debug = args.debug
c.Resume = args.resume
c.Images = args.images
c.Videos = args.videos
c.Media = args.media
c.Replies = args.replies
return c
def options():
......@@ -176,9 +180,10 @@ def options():
ap.add_argument("-iu", "--index-users", help="Custom Elasticsearch Index name for Users.")
ap.add_argument("--debug", help="Store information in debug logs", action="store_true")
ap.add_argument("--resume", help="Resume from Tweet ID.")
ap.add_argument("--videos", help="Display only Tweets with videos.")
ap.add_argument("--images", help="Display only Tweets with images.")
ap.add_argument("--media", help="Display Tweets with only images or videos.")
ap.add_argument("--videos", help="Display only Tweets with videos.", action="store_true")
ap.add_argument("--images", help="Display only Tweets with images.", action="store_true")
ap.add_argument("--media", help="Display Tweets with only images or videos.", action="store_true")
ap.add_argument("--replies", help="Display replies to a subject.", action="store_true")
args = ap.parse_args()
return args
......
......@@ -46,3 +46,4 @@ class Config:
Images = False
Videos = False
Media = False
Replies = False
......@@ -81,10 +81,12 @@ async def Search(config, init):
config.Near = config.Near.replace(",", "%2C")
url += f"%20near%3A%22{config.Near}%22"
if config.Images:
url += f"%20filter%3Aimages"
url += "%20filter%3Aimages"
if config.Videos:
url += f"%20filter%3Avideos"
url += "%20filter%3Avideos"
if config.Media:
url += f"%20filter%3Amedia"
url += "%20filter%3Amedia"
if config.Replies:
url += "%20filter%3Areplies"
return url
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