Closed MattPChoy closed 3 years ago
Try the following to resolve an external dependency:
pip3 install lxml
Explanation:
That error is related to a missing package (the lxml
parser), which instascrape
calls when scraping a profile and extracting posts.
(I think, confirm with @chris-greening)https://github.com/chris-greening/instascrape/blob/354becdf123592fa01933816cb75954e870fa988/instascrape/scrapers/profile.py#L153
Describe the bug
When using the Selenium webdriver, I get an error saying that Profile.url isn't a String (it's a NoneType object). When forcing it to be set by
Profile.url = url_string
, I get a bs4 error:To Reproduce
Steps to reproduce the behavior: First Error: Header file not working. Reproduce by running the following script
Expected behavior
A clear and concise description of what you expected to happen. Not throw a bs4 error when using the scrape syntax as described in documentation.
Desktop (please complete the following information):