Browse Source

Fix confusing error message when lxml is not installed

master
JustAnotherArchivist 3 years ago
parent
commit
743e0582ba
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      warc-tiny

+ 1
- 1
warc-tiny View File

@@ -445,7 +445,7 @@ class ScrapeMode(ProcessMode):
def __init__(self, urlsOnly):
self._urlsOnly = urlsOnly

assert wpull is not None, 'Scrape mode requires wpull'
assert wpull is not None, 'Scrape mode requires wpull and lxml'
htmlParser = wpull.document.htmlparse.lxml_.HTMLParser()
elementWalker = wpull.scraper.html.ElementWalker()
scrapers = []


Loading…
Cancel
Save