How Do I Extract Specific 'xpath text' from a Webpage? or What's the Best Way to Target 'xpath text'

18 Replies, 710 Views

"Why Isn't My xpath text Selector Working Right??"

Hey guys, struggling hard here lol.

Trying to scrape some xpath text from a site, but it keeps returning empty or grabbing the wrong stuff.

I’m using something like `//div[@class='stuff']/text()` but it’s not consistent.

Is it cuz the page’s dynamic? Or am I just dumb with xpath syntax?

Also, how do y’all handle xpath text when the content changes on click/load?

Any tips or examples would be *chef’s kiss*.

Thx in advance! 🙏

(PS: sorry for typos, typing on phone)

Messages In This Thread
How Do I Extract Specific 'xpath text' from a Webpage? or What's the Best Way to Target 'xpath text' - by - 14-10-2024, 11:53 PM



Users browsing this thread: 1 Guest(s)