Skip to content

Scraper options selector skip doesnt work #297

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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