twitterscraper icon indicating copy to clipboard operation
twitterscraper copied to clipboard

Create Verbose flag (query_tweets)

Open aditya-malte opened this issue 5 years ago • 1 comments

Hi, Currently, running query_tweets prints a large number of logs, which sometimes crash the browser session (for eg. if you use Google Colab) especially if you are iterating over a list of keywords. Additionally, it is not exactly a pretty way to visualize progress if you are iterating over several keywords. By keeping the logger mode as a parameter (eg. verbose, etc.) rather than fixed to logger.INFO in ts.logger, we can solve this issue. Thanks

aditya-malte avatar Feb 05 '20 14:02 aditya-malte

You can easily disable the log with:

import logging
logging.disable(logging.INFO)

ps.: This example disables INFO globally

axnsantana avatar Mar 30 '20 17:03 axnsantana