You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like in your case doc.Find("#todayweek").Text() would do the trick. Using Find("span").Text() will get you the combined text of all spans in the document. Also, your document might not be properly formatted or the character set might not be utf-8 (it has to be).
If you can paste a simplified version of a working example of the code and html (text, not screen captures), I can try it out and point out what might be going on.
I have an issue where the value I want to get isn't in the span tag but beside it <span class="fas fa-user"></span> Published By <a href="mailto:ur@gctu.edu.gh"> University Relations Directorate<!--Henry Amoah--></a> | <span class="fas fa-calendar"> </span> Monday October 3, 2022 | <span class="fas fa-clock"></span> 2:27 pm
Which method can get a element value?
s.Find("span").Text()[Html()] can not get any?
The text was updated successfully, but these errors were encountered: