4

I want get the text between I have already use lib splinter

"<span id="stWelcomeInbox" class="nui-txt-impt">
1
</span>"

PS: i don't want to download the page and read as html code maybe re lib is available but i don't know how to use it without download that page.i don't know how to use re lib ,too. please help me

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
circleone
  • 75
  • 1
  • 7

1 Answers1

6

Use find_by_id() method:

element = browser.find_by_id('stWelcomeInbox').first
print element.text
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195