Skip to content

NoneType' object has no attribute 'find' #2

@datatalking

Description

@datatalking

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_statement_soup.find('div', class_='M(0) Whs(n) BdEnd Bdc($seperatorColor) D(itb)')
----> 9 income_statement_header = income_statement_table.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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions