lit26 / finvizfinance

Finviz analysis python library.
https://finvizfinance.readthedocs.io/en/latest/
MIT License
516 stars 85 forks source link

BUG: Insider SEC Form 4 Link 'NoneType' object has no attribute 'attrs’ #60

Closed CyberCouncil closed 2 years ago

CyberCouncil commented 2 years ago

finvizfinance version checks

Reproducible Example

from finvizfinance.insider import Insider

finsider = Insider(option='latest')
insider_trader = finsider.get_insider()

Issue Description

Whenever we call the get_insider(). It throws a below error:

File “finvizfinance/insider.py”, line 81, in get_insider info_dict[“SEC Form 4 Link”] = col.find(“a”).attrs[“href”] AttributeError: 'NoneType' object has no attribute 'attrs’

Expected Behavior

Get the Insider data

Installed Versions

finvizfinance 0.14.3
lit26 commented 2 years ago

Will be fixed in the next version.