Playwright Chromium/Javascript: how to pull multiple snippets from a single DIV #2195
Unanswered
natecovington
asked this question in
Q&A
Replies: 1 comment
-
Here's an example Python script that generally shows what I'm trying to do
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to scrape content off a Javascript based site, it renders public notices into a DIV with this xpath:
/html/body/div/div[1]/div[5]/div/div/div[2]/div/p[2]
Somewhere else on the page, a series of 20 (twenty) DIV's with xpath's in series like this:
/html/body/div/div[1]/div[5]/div/div/div[1]/div[1]/div[1]/div/div
/html/body/div/div[1]/div[5]/div/div/div[1]/div[1]/div[2]/div/div
/html/body/div/div[1]/div[5]/div/div/div[1]/div[1]/div[3]/div/div
(...)
/html/body/div/div[1]/div[5]/div/div/div[1]/div[1]/div[20]/div/div
How do I set it up so that it clicks on all 20 DIV's, gets the content from this box after each:
/html/body/div/div[1]/div[5]/div/div/div[2]/div/p[2]
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions