tiktok-scraper
tiktok-scraper copied to clipboard
Quiet mode
Is your feature request related to a problem? Please describe. I run this program through cron, meaning it's run automatically at certain times. Cron will report the output of commands back to me later, but tiktok-scraper produces a lot of output, especially animated output like progress bars.
Describe the solution you'd like
The best solution would be to add a -q and --quiet flag, that causes tiktok-scraper to only output errors and warnings. All progress bars and informational output would be disabled.
Thanks for creating this software!
This is interesting, I was going to open an issue for the opposite problem. tiktok-scraper produces hardly any output for me, and I was hoping for some kind of progress bar or verbose mode with the CLI. This is the output I get:
TikTok Bulk Scraping Started
Scraping completed: user [user1]
Scraping completed: user [user2]
Scraping completed: user [user3]
Scraping completed: user [user4]
Scraping completed: user [user5]
...
There is no indication of which user is currently being scraped or progress on the current user. There is only notification of when a user has finished being scraped. I don't mean to hijack the post but before I create a separate issue for this, is there an option I'm missing to provide more verbose output?
Answering my own question, it looks like the non-batch mode provides more progress output. I'll create a separate issue then for progress output with batch mode. Carry on...
First of all, thank you for forwarding me to this page. I have the same problem and would like to have the choice to configure tiktok-scraper with, for example, a parameter so that it does not produce any output.
But we can provisionally add something to tiktok-scraper that no longer produces any issues and is very suitable as a cron. It works with macOS 10.11 without any problems.
tiktok-scraper user videozeugs -d -n 5 2>/dev/null > /dev/null
In addition, macOS doesn't actually have to add these two arguments at all. Because nowadays you don't use cronjobs anymore but LaunchDaemons & LaunchAgents. These only produce a log file for error messages and a log file for normal output if specified explicitly.
<key>StandardOutPath</key>
<string>/var/log/tiktok-scraperout.log</string>
<key>StandardErrorPath</key>
<string>/var/log/tiktok-scrapererror.log</string>