iawia002/lux · error
can not found title
Error message
can not found title
What it means
The kuaishou extractor mints a fresh cookie (createCookie), fetches the page, then reads the video name from <title>([^<]+)</title>. This error means the served HTML carried no title content — almost always an anti-bot or waf interstitial rather than the real video page. The request itself succeeded.
Source
Thrown at extractors/kuaishou/kuaishou.go:65
headers := map[string]string{
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0",
}
cookies, err := fetchCookies(url, headers)
if err != nil {
return nil, errors.WithStack(err)
}
headers["Cookie"] = cookies
html, err := request.Get(url, url, headers)
if err != nil {
return nil, errors.WithStack(err)
}
titles := utils.MatchOneOf(html, `<title>([^<]+)</title>`)
if titles == nil || len(titles) < 2 {
return nil, errors.New("can not found title")
}
title := regexp.MustCompile(`\n+`).ReplaceAllString(strings.TrimSpace(titles[1]), " ")
qualityRegMap := map[string]*regexp.Regexp{
"sd": regexp.MustCompile(`"photoUrl":\s*"([^"]+)"`),
}
streams := make(map[string]*extractors.Stream, 1)
for quality, qualityReg := range qualityRegMap {
matcher := qualityReg.FindStringSubmatch(html)
if len(matcher) != 2 {
return nil, errors.WithStack(extractors.ErrURLParseFailed)
}
u := strings.ReplaceAll(matcher[1], `\u002F`, "/")
size, err := request.Size(u, url)View on GitHub (pinned to dd00f6d258)
Solutions
- Retry — the cookie is regenerated each run and a second attempt often passes.
- Open the URL in an incognito browser to confirm the video is public.
- Run from a different IP or network.
- If the page renders but the title moved, update the regex.
Defensive patterns
Strategy: retry
Try / catch
Retry the full Extract 2-3 times with a few seconds of backoff — each attempt mints a fresh kuaishou cookie and transient risk-control failures often clear. Stop retrying once the failure repeats to avoid provoking the waf.
Prevention
- Keep concurrency low for kuaishou; bursts trigger challenges
- Rotate egress IPs for large jobs
- Verify video availability in an incognito browser before extraction
When it happens
Trigger: Kuaishou risk control serving a challenge the freshly minted cookie did not pass; deleted or region-locked videos; a page-shell change that drops the title tag.
Common situations: Datacenter IPs; bursts of requests from one IP; videos under moderation review.
Related errors
- this page has no playlist
- Could not extract media URL from page
- failed to fetch the post, the page might be "private", or th
- could not find video in page
- Could not extract media name from page
AI-assisted analysis of iawia002/lux@dd00f6d258 (2026-08-15).
Data as JSON: /api/errors/5f739aeabf74e936.
Report an issue: GitHub.