tiktok-scraper icon indicating copy to clipboard operation
tiktok-scraper copied to clipboard

--filename, scraped user name in output file?

Open blasphemite opened this issue 4 years ago • 5 comments

I'm wondering if it's possible to use the --filename,-f option in the terminal to include a username when scraping video URLs from a list?

I haven't figured out how to do this with the --filename option, so I'm wondering if it's possible.

tiktok-scraper from-file /path/to/link_list.txt 5 -s -d --filepath /scraped on Ubuntu 18.04 is specifically the command I'm running, where link_list.txt is a list of URLs. This saves videos with the video ID (i think) as the filename.

blasphemite avatar Jun 15 '20 20:06 blasphemite

Not sure what exactly you mean

drawrowfly avatar Jun 17 '20 09:06 drawrowfly

Lets say I download videos from "Username123", It would be nice to be able to set the username as the filename including the signature.

From: 87623459876234598.mp4

To: Username123_87623459876234598.mp4.

And if possible make it work when you use from_file tag so that each file starts with the username that is associated to that user.

AlphaBetaWhisky avatar Jun 17 '20 14:06 AlphaBetaWhisky

I think this is unnecessary because when you download videos from a user profile then a new folder with the name of user is being created where all his videos are being saved

Also pull request are welcome

drawrowfly avatar Jun 17 '20 14:06 drawrowfly

I think this is unnecessary because when you download videos from a user profile then a new folder with the name of user is being created where all his videos are being saved

Right, but I mean when downloading videos from URLs, which doesn't include the username anywhere in the output.

blasphemite avatar Jun 18 '20 13:06 blasphemite

Got it. Will add it to a to do list

drawrowfly avatar Jun 18 '20 13:06 drawrowfly