taspinar / twitterscraper

Scrape Twitter for Tweets
MIT License
2.39k stars 581 forks source link

switch off the LOG #312

Open lukaspistelak opened 4 years ago

lukaspistelak commented 4 years ago

How can i switch to off log print_?

INFO: Scraping tweets from https://twitter.com/search?f=tweets&vertical=default&q=from%3AMazGTV%20since%3A2020-04-07%20until%3A2020-04-15&l= INFO: Using proxy 195.182.152.238:38178 INFO: Retrying... (Attempts left: 3) INFO: Scraping tweets from https://twitter.com/search?f=tweets&vertical=default&q=from%3AMazGTV%20since%3A2020-04-07%20until%3A2020-04-15&l= INFO: Using proxy 103.117.213.76:41972 INFO: Retrying... (Attempts left: 2) INFO: Scraping tweets from https://twitter.com/search?f=tweets&vertical=default&q=from%3AMazGTV%20since%3A2020-04-07%20until%3A2020-04-15&l= INFO: Using proxy 195.158.109.248:50330 INFO: Retrying... (Attempts left: 1) INFO: Scraping tweets from https://twitter.com/search?f=tweets&vertical=default&q=from%3AMazGTV%20since%3A2020-04-07%20until%3A2020-04-15&l= INFO: Using proxy 169.57.1.85:8123 INFO: Got 0 tweets for from%3AMazGTV%20since%3A2020-04-07%20until%3A2020-04-15. INFO: Got 0 tweets (0 new).

lapp0 commented 4 years ago

Either you need to manually change level = logging.INFO to level = logging.WARNING in ts_logger.py, or even better, you could change main.py so a command line argument can fix it.

Alternatively you can do twitterscraper --user "realdonaldtrump" --lang en -l 100 --output trump_all.json | grep -v "INFO: "