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

XPath doesnt seem to work. #81

Open
Shamatix opened this issue Jan 4, 2022 · 0 comments
Open

XPath doesnt seem to work. #81

Shamatix opened this issue Jan 4, 2022 · 0 comments

Comments

@Shamatix
Copy link

Shamatix commented Jan 4, 2022

I stumbled upon the SelectorLib and saw you were a contributor so I am reaching out in hope you can help me.

I am having a very hard time getting the "XPath" to work.
I am trying to scrape the following website:
https://oelkassen.dk/vare/false-pattern-modist-brewing-co/

And I am trying to get the following information out.
https://i.imgur.com/UhriGSf.png

I have multiple different XPaths that works if I am not using the Chrome SelectorLib plugin, however they dont seem to work in the plugin?

For example:
//strong[text()="Alcohol: "]/following-sibling::text()[1]

or
//html/body/div[6]/div/div[2]/div[2]/div[2]//strong[text()="Alcohol: "]/following-sibling::text()[1]

Both works in the developer tools, but not in the SelectorLib plugin.
https://i.imgur.com/8A0FG2v.png
https://i.imgur.com/NRbtZCv.png
I hope you can help me out

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

1 participant