Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
import csv | |
#open the html file and create a soup object | |
soup = BeautifulSoup(open("43rd-congress.html")) | |
#get rid of the final link that is outside the table | |
final_link = soup.p.a | |
final_link.decompose() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ADAMS, George Madison | 1837-1920 | Representative | Democrat | KY | 43(1873-1874) | http://bioguide.congress.gov/scripts/biodisplay.pl?index=A000035 | |
---|---|---|---|---|---|---|---|
ALBERT, William Julian | 1816-1879 | Representative | Republican | MD | 43(1873-1874) | http://bioguide.congress.gov/scripts/biodisplay.pl?index=A000074 | |
ALBRIGHT, Charles | 1830-1880 | Representative | Republican | PA | 43(1873-1874) | http://bioguide.congress.gov/scripts/biodisplay.pl?index=A000077 | |
ALCORN, James Lusk | 1816-1894 | Senator | Republican | MS | 43(1873-1874) | http://bioguide.congress.gov/scripts/biodisplay.pl?index=A000079 | |
ALLISON, William Boyd | 1829-1908 | Senator | Republican | IA | 43(1873-1874) | http://bioguide.congress.gov/scripts/biodisplay.pl?index=A000160 | |
AMES, Adelbert | 1835-1933 | Senator | Republican | MS | 43(1873-1874) | http://bioguide.congress.gov/scripts/biodisplay.pl?index=A000172 | |
ANTHONY, Henry Bowen | 1815-1884 | Senator | Republican | RI | 43(1873-1874) | http://bioguide.congress.gov/scripts/biodisplay.pl?index=A000262 | |
ARCHER, Stevenson | 1827-1898 | Representative | Democrat | MD | 43(1873-1874) | htt |
NewerOlder