saleguas / PastPapersDownloader

A tool created with python to bulk download past papers(AICE As and A levels, IGCSEs, O-Levels)
MIT License
1 stars 0 forks source link

Couldn't find a tree builder with the features you requested: lxml #1

Open KnowsCount opened 3 years ago

KnowsCount commented 3 years ago

Hi! I wanted to download all IGCSE past papers (only maths actually but I do not imagine this tool can do categorisation), yet it reports me the following:

➜  ppdr git:(master) ✗ python main.py -I ALL
Fetching Exam links...
Traceback (most recent call last):
  File "main.py", line 4, in <module>
    from scripts import parser
  File "/Users/admin/projects/ppdr/scripts/parser.py", line 34, in <module>
    mainMethods.downloadIGCSE(args['IGCSE'])
  File "./scripts/mainMethods.py", line 75, in downloadIGCSE
    RemoteLinks.IGCSE.value, syllabusCode)
  File "./scripts/mainMethods.py", line 45, in downloadCAIE
    examClasses = web_data.getExamClasses(url, pattern)
  File "./scripts/web_data.py", line 20, in getExamClasses
    soup = BeautifulSoup(page, "lxml")
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/bs4/__init__.py", line 246, in __init__
    % ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

I am really noob to all these python stuff as I do front-end dev, so can you help me a bit with this?


I am using:

I have pip installed bs4 and requests as requested in tracebacks before.

thetruespectre commented 1 week ago

Try running pip install lxml