J
J
JRazor2014-02-11 01:29:48
HTML
JRazor, 2014-02-11 01:29:48

XPath: how to get text from tags?

Hello, sorry for the simple questions on Toaster, but I really can't find anything. This time I can't get the text from the tags:
<cufontext>Text</cufontext>
text() doesn't return anything, I've already gone through everything, but obviously missed something.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Melnikov, 2014-02-11
@JRazor

As far as I know, Python is a server-side language, and I understand that you want to parse the page?
If so, then most likely the cufontext tag does not exist at the time of parsing, it appears after the page has been processed in the browser and js has been processed.
In this example, try to get the text of a span tag with the class lightblue

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question