Feb-19-2019, 12:35 AM
(Feb-03-2019, 07:33 PM)snippsat Wrote: Your functions setup in is wrong,just drop functions for now,if you unsure how they work.
It's a really messy site to deal with,so not the easiest to start with if new to this.
To show a way to get values from first line,it can also easier to sendbrowser.page_source
to BS for parsing.
Hi. I wrote the code on the pure lxml and it works faster than yours.
Yes. It's a really messy site to deal with,so not the easiest to start with if new to this, many pitfalls, but then others will be easy.
page = browser.page_source time.sleep(3) doc = lxml.html.fromstring(page) row = doc.cssselect("tr.lo")[0] print(row.text_content().strip())