Currently, I'm looking to scrape the signatures table from the edgar filings for specific companies. I have created a Python program to get down into each document and finds the tables that I need to scrape. I'm having trouble figuring out how to output the data to a file in a 'pretty' way.
Here's a link for a bit of a visual (just scroll to the bottom of the document, there will be a page of signatures there): Example Document
What I'm looking to do is format the table, the same way it is formatted on the website, with each cell taking up a specific amount of space, and filling in unused space with... well, spaces!
My current output:
|Signature, Date, Title|
|/s/ Stanley M. Kuriyama| Chairman of the Board, February 29th, 2016|
|Stanley M. Kuriyama|
|/s/ Christopher J. Benjamin, President, Chief Executive, February 29th, 2016|
|Christopher J. Benjamin, Officer and Director (and so on...)|
|-----------------------------------------------------------------------------|
What I'm looking to do (periods are spaces):
|Signature......................,Title......................,Date...............|
|/s/ Stanley M. Kuriyama,.......,Chairman of the Board,.....,February 29th, 2016|
|Stanley M. Kuriyama............................................................|
|/s/ Christopher J. Benjamin....,President, Chief Executive,February 29th,2016..|
|Christopher J. Benjamin,.......,Officer and Director (and so on...)............|
|-------------------------------------------------------------------------------|
Is there any way to print out the string plus (maxSize -stringSize
) number of spaces per cell, so the data looks more tabular? I'm looking to do this with the vanilla Python3, not additional downloads because the people using this program may not be as tech savvy as I am.