Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2012
    Posts
    101
    Thanks
    2
    Thanked 5 Times in 4 Posts

    Need some help with a python web crawler

    I did everything right on this tutorial http://www.netinstructions.com/2011/...f-python-code/
    but i keep getting this error when i press enter.

    "Traceback (most recent call last):
    File "<pyshell#1>", line 1, in <module>
    from html.parser import HTMLParser
    ImportError: No module named html.parser"

    So do i make the html parser or what?

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    If you are using Python < version 3 it was called HTMLParser.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •