harinathselvaraj / python-get-stock-price

Python code to scrape the current price of a stock ticker from Yahoo Finance page
7 stars 13 forks source link

Module not found error #1

Open dhiru45 opened 4 years ago

dhiru45 commented 4 years ago

I am getting this error while using this code to fetch the data. what should be the issue?? Plz guide me.


ModuleNotFoundError Traceback (most recent call last)

in 1 # Import libraries 2 import requests ----> 3 from bs4 import BeautifulSoup 4 import requests_html 5 import lxml.html as lh ModuleNotFoundError: No module named 'bs4'
harinathselvaraj commented 4 years ago

Hi, you need to install beautiful soup module. Please execute the below code in the command line or in Jupyter notebook

pip install beautifulsoup4

Regards Harinath Selvaraj 0894439533


From: dhiru45 notifications@github.com Sent: Monday, February 10, 2020 6:56:49 AM To: harinathselvaraj/python-get-stock-price python-get-stock-price@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [harinathselvaraj/python-get-stock-price] Module not found error (#1)

I am getting this error while using this code to fetch the data. what should be the issue?? Plz guide me.


ModuleNotFoundError Traceback (most recent call last) in 1 # Import libraries 2 import requests ----> 3 from bs4 import BeautifulSoup 4 import requests_html 5 import lxml.html as lh

ModuleNotFoundError: No module named 'bs4'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/harinathselvaraj/python-get-stock-price/issues/1?email_source=notifications&email_token=AA4OR2MTJS7A7OW4AHG7LCDRCD3DDA5CNFSM4KSISNB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IME6WCQ, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA4OR2MLMBUOF2KNOQMYOTDRCD3DDANCNFSM4KSISNBQ.