Cartmanishere / zippyshare-scraper

A module to get direct downloadable links from zippyshare download page.
MIT License
106 stars 28 forks source link

Missing dependency lxml #17

Closed shivambl closed 4 years ago

shivambl commented 4 years ago

I tried this script on an almost fresh Ubuntu 20.04 install but got this error:

Traceback (most recent call last):
  File "zippyshare.py", line 398, in <module>
    links, failed = zippy.parse_links(urls)
  File "zippyshare.py", line 128, in parse_links
    extract, link = f.result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "zippyshare.py", line 64, in get_download_link
    soup = BeautifulSoup(html.content, "lxml")
  File "/home/shivam/.local/lib/python3.8/site-packages/bs4/__init__.py", line 242, in __init__
    raise FeatureNotFound(
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

This was fixed by:

pip3 install lxml

I think lxml should be added to the dependencies in the README