- Patreon: https://www.patreon.com/sd_hassan
This is a Python script that allows you to extract faces from TikTok videos.
- Downloads a TikTok video from a given URL or downloads a profile upp to 28 videos
- Extracts faces from the downloaded video
- Saves the extracted faces to disk
- Clone this repository or download the ZIP file and extract the contents.
- Install the required dependencies by running
pip install -r requirements.txt
in the root directory of the project.
- Open a terminal or command prompt and navigate to the root directory of the project.
- Run the command
python hassan-tiktok.py
to launch the script. - Select either a profile or URL download option then enter the URL or the username of the TikTok video/account you want to extract faces from.
- The script will download the video and extract the faces. The extracted faces will be saved in the
faces
directory.
If you get a build error when installing requirements, you may need the Visual Studio Build tools c++ workload
Download build tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Then in the same folder where your EXE is, run this command:
.\vs_BuildTools.exe --quiet --wait --norestart --nocache --installPath C:\BuildTools --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.Windows10SDK.19041
or
vs_BuildTools.exe --quiet --wait --norestart --nocache --installPath C:\BuildTools --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.Windows10SDK.19041
Leave it running and you can see in your C:\BuildTools that new folders are being added. When it's finished, restart the PC and your package should install correctly