Commit a38df34c authored by Francesco Poldi's avatar Francesco Poldi

Added filter for links

parent 91296019
VERSION = (1, 3, 0)
VERSION = (1, 3, 1)
__version__ = '.'.join(map(str, VERSION))
......@@ -68,4 +68,5 @@ class Config:
Native_retweets = False
c.Min_likes = 0
c.Min_retweets = 0
c.Min_replies = 0
\ No newline at end of file
c.Min_replies = 0
c.Links = None
\ No newline at end of file
......@@ -117,6 +117,10 @@ async def Search(config, init):
q += f" min_retweets:{config.Min_retweets}"
if config.Min_replies:
q += f" min_replies:{config.Min_replies}"
if config.Links == "include":
q += " filter:links"
elif config.Links == "exclude":
q += " exclude:links"
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