Commit 7c40825f authored by Francesco Poldi's avatar Francesco Poldi

Added members_list

parent 278955ae
......@@ -121,6 +121,7 @@ def initialize(args):
c.Min_replies = args.min_replies
c.Links = args.links
c.Source = args.source
c.Members_list = args.members_list
return c
def options():
......@@ -213,6 +214,7 @@ def options():
ap.add_argument("--links", help="Include or exclude tweets containing one o more links. If not specified"+
" you will get both tweets that might contain links or not.")
ap.add_argument("--source", help="Filter the tweets for specific source client.")
ap.add_argument("--members-list", help="Filter the tweets sent by users in a given list.")
args = ap.parse_args()
return args
......
......@@ -70,4 +70,5 @@ class Config:
Min_retweets = 0
Min_replies = 0
Links = None
Source = None
\ No newline at end of file
Source = None
Members_list = None
\ No newline at end of file
......@@ -123,6 +123,8 @@ async def Search(config, init):
q += " exclude:links"
if config.Source:
q += f" source:\"{config.Source}\""
if config.Members_list:
q += f" list:{config.Members_list}"
if config.Custom_query:
q = config.Custom_query
......
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