Skip to content

Scraper options selector skip doesnt work #297

Closed
@cbsa100

Description

@cbsa100

Options

 const options = {
      wordwrap: null,
      selectors: [
        { selector: 'a', options: { ignoreHref: true } },
        { selector: 'img', format: 'skip' },
        { selector: 'nav', format: 'skip' },
        { selector: 'header', format: 'skip' },
        { selector: 'footer', format: 'skip' },
        { selector: '*[data-elementor-type=footer]', format: 'skip' },
        { selector: '*[data-elementor-type=header]', format: 'skip' },
      ],
    };```



**Version information**

    "html-to-text": "^9.0.5",
    "next": "^13.4.8",

----

When trying to scrape a webpage, i try to remove the header, footer images, navs and links to get only the text.
however, for some reason, i get the footer text in the result
i tried this both on elementor sites (with and without the data attributes) and on non-elementor sites (with the footer tag), also tried with and without the astric before the data attribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions