Commit c90ec0ce authored by Francesco Poldi's avatar Francesco Poldi

Removed not working get_replies feature

#482
parent 9784bb44
VERSION = (1, 2, 4)
VERSION = (1, 2, 5)
__version__ = '.'.join(map(str, VERSION))
......@@ -111,7 +111,6 @@ def initialize(args):
c.Proxy_port = args.proxy_port
c.Proxy_type = args.proxy_type
c.Retweets = args.retweets
c.Get_replies = args.get_replies
c.Custom_query = args.custom_query
c.Popular_tweets = args.popular_tweets
c.Skip_certs = args.skip_certs
......@@ -196,7 +195,6 @@ def options():
ap.add_argument("--replies", help="Display replies to a subject.", action="store_true")
ap.add_argument("-pc", "--pandas-clean",
help="Automatically clean Pandas dataframe at every scrape.")
ap.add_argument("--get-replies", help="All replies to the tweet.", action="store_true")
ap.add_argument("-cq", "--custom-query", help="Custom search query.")
ap.add_argument("-pt", "--popular-tweets", help="Scrape popular tweets instead of recent ones.", action="store_true")
ap.add_argument("-sc", "--skip-certs", help="Skip certs verification, useful for SSC.", action="store_false")
......
......@@ -61,7 +61,6 @@ class Config:
Retweets = False
Query = None
Hide_output = False
Get_replies = False
Near = ""
Custom_query = ""
Popular_tweets = False
......
......@@ -132,11 +132,7 @@ async def checkData(tweet, config, conn):
async def Tweets(tweets, config, conn, url=''):
logme.debug(__name__+':Tweets')
if (config.Profile_full or config.Location) and config.Get_replies:
logme.debug(__name__+':Tweets:full+loc+replies')
for tw in tweets:
await checkData(tw, config, conn)
elif config.Favorites or config.Profile_full or config.Location:
if config.Favorites or config.Profile_full or config.Location:
logme.debug(__name__+':Tweets:fav+full+loc')
for tw in tweets:
if tw['data-item-id'] == url.split('?')[0].split('/')[-1]:
......
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