• locm

    print(lh[10].text.strip())
    works perfectly- thank you!

    posted in Pythonista read more
  • locm

    @ccc thank you - that works perfectly

    posted in Pythonista read more
  • locm

    Here is my script:

    from bs4 import BeautifulSoup as soup
    from urllib.request import urlopen as uReq
    page_url = ('http://fcs002.xreflector.net/_user.html')
    uClient = uReq(page_url)
    page_soup = soup(uClient.read(), "html.parser")
    uClient.close
    lh = page_soup.findAll("td")
    print (lh[10])
    

    It prints out:
    <td><div align="left">WW6E </div></td>

    how can I end up with just the WW6E ?

    Thanks,
    Michael

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!