Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LXML
#1
I installed BeautifulSoup and LXML. I'm running python in Windows CMD.

When I run the following I get an error. Anyone know what is going on and how to fix it?

>>> import lxml.html
>>> import lxml.etree
>>>
>>> html = requests.get("https://store.steampowered.com/explore/new/")
>>> doc = lmxl.html.fromstring(html.content)
Error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'lmxl' is not defined
Reply


Messages In This Thread
LXML - by mustfirst - Oct-05-2019, 01:29 PM
RE: LXML - by buran - Oct-05-2019, 01:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  lxml - etree/lxml need help storing variable for most inserted element goeb 0 3,185 Apr-01-2019, 03:09 AM
Last Post: goeb

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020