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

Selector help #19

Open
tristan-mcinnis opened this issue Nov 18, 2023 · 1 comment
Open

Selector help #19

tristan-mcinnis opened this issue Nov 18, 2023 · 1 comment

Comments

@tristan-mcinnis
Copy link

Thanks for building this. Just wondering if there is an easier way or dynamic way to find the selector? Seems this is the part where it either breaks or I have difficulty.

So my normal approach would be to visit the site I want to scape, right click the contents that I want to scape and click 'inspect'. Then I right click again to copy the 'selector'. But the contents would be quite long and specific to that page... (e.g. #app > div.article-box.grid.container > div:nth-child(2) > div.acticle-content > div:nth-child(2) > div.normal.system.article-body > p:nth-child(6)

Any suggestions on how to streamline? or fix? Thanks again

@inderpreet001
Copy link

I wanted to scrape the entire page without having to explicitly selecting the selector, so what I did is added 'body' as selector.

eg: selector: body

And this is working for me to fetch all data on the page without defining the specific 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