Repository: yt-dlp
Issue: [Feature Request] Support for Downloading Videos from TikTok Search Results Pages
Labels: site-enhancement,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm requesting a site-specific feature
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

global

### Example URLs

https://www.tiktok.com/search?q=sounds+music

### Provide a description that is worded well enough to be understood

### Problem Description
yt-dlp currently does not support downloading videos from TikTok search results pages, such as `https://www.tiktok.com/search?q=sounds+-music`. Users looking to download multiple videos based on search queries are affected by this limitation.

### Suggested Feature
I suggest implementing a feature in yt-dlp that allows the extraction and downloading of videos from TikTok search results pages by entering a URL.

### Use Case
This enhancement would benefit researchers and content creators who need to download TikTok videos based on specific keywords, improving content collection and analysis.

### Additional Context
Enabling this feature would enhance yt-dlp's functionality for TikTok, meeting the growing needs of its user base for comprehensive video downloading tools.

Thank you for considering this addition to yt-dlp.


### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', 'https://www.tiktok.com/search?q=sounds+-music', '--skip-download']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.05.27 from yt-dlp/yt-dlp [12b248ce6] (pip)
[debug] Python 3.10.8 (CPython arm64 64bit) - macOS-14.5-arm64-arm-64bit (OpenSSL 1.1.1w  11 Sep 2023)
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, brotlicffi-1.1.0.0, certifi-2024.06.02, mutagen-1.47.0, requests-2.31.0, sqlite3-3.45.2, urllib3-2.0.3, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1820 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2024.05.27 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.05.27 from yt-dlp/yt-dlp)
[generic] Extracting URL: https://www.tiktok.com/search?q=sounds+-music
[generic] search?q=sounds+-music: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] search?q=sounds+-music: Extracting information
[debug] Looking for embeds
ERROR: Unsupported URL: https://www.tiktok.com/search?q=sounds+-music
Traceback (most recent call last):
  File "/opt/anaconda3/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1606, in wrapper
    return func(self, *args, **kwargs)
  File "/opt/anaconda3/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1741, in __extract_info
    ie_result = ie.extract(url)
  File "/opt/anaconda3/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 734, in extract
    ie_result = self._real_extract(url)
  File "/opt/anaconda3/lib/python3.10/site-packages/yt_dlp/extractor/generic.py", line 2514, in _real_extract
    raise UnsupportedError(url)
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.tiktok.com/search?q=sounds+-music
```