Skip to content
Advertisement

beautifulsoup: Unable to get correct info from dividendinvestor with cookie

I’m trying to get some data from dividendinvestor.com. But the content results did not have any information such as “Consecutive Dividend Increases”.

Does anyone has a work around for this?

JavaScript

Advertisement

Answer

As you can get ajax request URL from Network tab which returns json data you can parse it to bs4 and it returns HTML so you can extract what so ever data is needed!

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement