Commit 91689d0f authored by andytnt's avatar andytnt

removed --query

parent 4e83c4c3
...@@ -106,7 +106,6 @@ def initialize(args): ...@@ -106,7 +106,6 @@ def initialize(args):
c.Proxy_type = args.proxy_type c.Proxy_type = args.proxy_type
c.ES_count = {"likes":True, "replies":True, "retweets":True} c.ES_count = {"likes":True, "replies":True, "retweets":True}
c.Retweets = args.retweets c.Retweets = args.retweets
c.Query = args.query
return c return c
def options(): def options():
...@@ -188,7 +187,6 @@ def options(): ...@@ -188,7 +187,6 @@ def options():
ap.add_argument("--replies", help="Display replies to a subject.", action="store_true") ap.add_argument("--replies", help="Display replies to a subject.", action="store_true")
ap.add_argument("-pc", "--pandas-clean", ap.add_argument("-pc", "--pandas-clean",
help="Automatically clean Pandas dataframe at every scrape.") help="Automatically clean Pandas dataframe at every scrape.")
ap.add_argument("--query", help="Search query")
args = ap.parse_args() args = ap.parse_args()
return args return args
...@@ -199,14 +197,14 @@ def main(): ...@@ -199,14 +197,14 @@ def main():
args = options() args = options()
check(args) check(args)
if args.userlist:
args.query = loadUserList(args.userlist, "search")
if args.pandas_clean: if args.pandas_clean:
twint.storage.panda.clean() twint.storage.panda.clean()
c = initialize(args) c = initialize(args)
if args.userlist:
c.Query = loadUserList(args.userlist, "search")
if args.pandas_clean: if args.pandas_clean:
twint.storage.panda.clean() twint.storage.panda.clean()
......
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