Open datatalking opened 2 years ago
Hi Andrew,
For this first article I wrote, I mostly relied on the BeautifulSoup library to scrape the required information from Yahoo Finance. As the structure of the website where I retrieve the data might have changed, the BeautifulSoup elements of the program might no longer work. I would recommend pip-installing the yahoo_fin library to get easier access to financials.
Hope this makes sense and answers your question :)
On Sat, Jun 4, 2022 at 11:05 PM Andrew Schell @.***> wrote:
I copied the code from https://medium.com/analytics-vidhya/building-an-intrinsic-value-calculator-with-python-7986833962cd
I've moved this into a jupiter notebook and tried to load the code from the webpage to get
''' AttributeError Traceback (most recent call last) in 7 8 income_statement_table = income_statementsoup.find('div', class='M(0) Whs(n) BdEnd Bdc($seperatorColor) D(itb)') ----> 9 income_statement_header = income_statementtable.find('div', class='D(tbr) C($primaryColor)') 10 header_lst = [] 11 for i in income_statement_header.find_all('div'):
AttributeError: 'NoneType' object has no attribute 'find' '''
Since the mcvaluation.py and the medium article differ so much, which is more correct or how to merge them to be a better working version that is updated?
— Reply to this email directly, view it on GitHub https://github.com/julianmarx/mcvaluation/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQDY7JYBJZ6VINSLBF2WNLVNPAJLANCNFSM5X37UJ6A . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I copied the code from https://medium.com/analytics-vidhya/building-an-intrinsic-value-calculator-with-python-7986833962cd
I've moved this into a jupiter notebook and tried to load the code from the webpage to get
''' AttributeError Traceback (most recent call last)