chore: prefer <head> title, ignore SVG and iframe titles - #128
Conversation
Performance validationBenchmarked
It's called twice per page, so: +0.01 ms on real pages (0.02–0.04% of 14–34 ms of local сс @nicklamonov |
ruocco-l
left a comment
There was a problem hiding this comment.
Just a comment on the casting that doesn't really matter to the PR, just wanted to point it out
| import { extractTitle } from '../src/website-content-crawler/html-processing.js'; | ||
|
|
||
| // The `cheerio` version bundled with Crawlee differs from the top-level one, so the types don't match. | ||
| const parse = (html: string) => load(html) as unknown as CheerioAPI; |
There was a problem hiding this comment.
This is an annoying cast, I think we can solve it by playing with Cheerio versions, I think it was discussed some time ago
|
yes, real miliseconds, agree. |
|
I still don't see PR title update ) |
damn, it wasn't saved. Re-updated now |
Closes #110.