Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a CSS selector? #92

Open
Tony20221 opened this issue Jun 12, 2022 · 1 comment
Open

How to create a CSS selector? #92

Tony20221 opened this issue Jun 12, 2022 · 1 comment

Comments

@Tony20221
Copy link

How to create a CSS selector? I didn't find anything in the docs about this? Which selector in Devtools? Any selector Chrome selector?

@a1sabau
Copy link
Member

a1sabau commented Jun 13, 2022

All css selectors are supported, they have the same syntax across all browsers.

You can use Chrome DevTools to inspect an element. Look for id, class attributes or combinations of the two to create a css selector uniquely identifying the html element you want to extract content from.

You can test the selector in the DevTools Console tab by typing / executing something like document.querySelectorAll("body") (replace body with your own selector). The console will return all html elements matching the given css selector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants