Not able to run beatifulsoup and xml library programs from the python playground editor online. | Coursera Community
Coursera Header
Question

Not able to run beatifulsoup and xml library programs from the python playground editor online.

  • 3 July 2019
  • 1 reply
  • 35 views

Badge +1
Hi Team,

While trying to execute beatifulsoup and xml library program got below error.
cant run on my PC as python installation has been blocked on my Machine.

could anyone help in resolving this issue.

ImportError: No module named bs4 on line 2

NotImplementedError: xml is not yet implemented in Skulpt on line 1

Regards
ananda

1 reply

Userlevel 4
Badge +4
Hello @Ananda Kumar S ,

If you are working on data scraping, I recommend you to install Scrapy instead of BeautifulSoup, It's more powerful.

To solve your issue, check that bs4 is installed before running the xml library:

1- Open the command prompt, then activate the virtualenv (activate the virtual environment in the command prompt), and then install BeautifulSoup4:
$ pip install BeautifulSoup4

2- If you are using Anaconda for package management, open the Anaconda Prompt, then install bs4:
conda install -c anaconda beautifulsoup4

Reply