preface

However, after the script provided in the Python batch download yesterday failed, many people are still asking why.

One reply after another is really troublesome, since everyone likes this script so much, it is better to update a wave, feel free.

The development tools

Python version: 3.6.4
Related modules:

Requests module;

Bs4 module;

And some modules that come with Python.

Environment set up

Install Python and add it to the environment variables. PIP installs the required related modules.

Update the content

(1) Interface request returned 403 status code error repair

403 Status code Indicates that the server denies or forbids access.

It is probably because someone abused this interface and was discovered by the management of Douyin. It must be stated here:

All scripts provided by the official account are only for learning and communication. Illegal dissemination or commercial use are prohibited.

I hope you use it wisely. I hate people who profit at the expense of others.

(2) Add the function of downloading watermarked audio and video

(3) Support douyin sign input with letters

I didn’t know tiktok had the letter T_T at first. So…

(4) Support multithreading download

To help upgrade those of you who are learning Python, here is a rich learning package