Commit 09c5c1b9 authored by Francesco Poldi's avatar Francesco Poldi

Added members_list

parent 53e0fdaa
...@@ -121,6 +121,7 @@ def initialize(args): ...@@ -121,6 +121,7 @@ def initialize(args):
c.Min_replies = args.min_replies c.Min_replies = args.min_replies
c.Links = args.links c.Links = args.links
c.Source = args.source c.Source = args.source
c.Members_list = args.members_list
return c return c
def options(): def options():
...@@ -213,6 +214,7 @@ 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"+ 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.") " 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("--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() args = ap.parse_args()
return args return args
......
...@@ -70,4 +70,5 @@ class Config: ...@@ -70,4 +70,5 @@ class Config:
Min_retweets = 0 Min_retweets = 0
Min_replies = 0 Min_replies = 0
Links = None Links = None
Source = None Source = None
\ No newline at end of file Members_list = None
\ No newline at end of file
...@@ -123,6 +123,8 @@ async def Search(config, init): ...@@ -123,6 +123,8 @@ async def Search(config, init):
q += " exclude:links" q += " exclude:links"
if config.Source: if config.Source:
q += f" source:\"{config.Source}\"" q += f" source:\"{config.Source}\""
if config.Members_list:
q += f" list:{config.Members_list}"
if config.Custom_query: if config.Custom_query:
q = 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