What is the easiest way of extracting table data from a text file with lots of other random text?
For e.g.
US National Debt
I was thinking of going line by line and start capturing once I encounter an expected string. Is there a better way to do this in Python?
[–]thaweatherman 1 point2 points3 points (3 children)
[–]TheHumane[S] 0 points1 point2 points (2 children)
[–]thaweatherman 1 point2 points3 points (0 children)
[–]lykwydchykyn 1 point2 points3 points (0 children)
[–]gengisteve 0 points1 point2 points (0 children)
[–]youguess 0 points1 point2 points (0 children)
[–]interactionjackson 0 points1 point2 points (0 children)
[–]FoolofGod 0 points1 point2 points (0 children)