The Gaceta/Gazeta de Madrid in all its incarnations from 1661 until after the Transition:
http://www.boe.es/aeboe/consultas/bases_datos/gazeta.php
Archivo Histórico de Diputados (1810 - 1977). There are two databases, the first is an alphabetical listing and the other a searchable database. You can search by profession, dates, name, elections, party, constituency,...
Índice Histórico de Diputados
http://www.congreso.es/portal/page/portal/Congreso/Congreso/SDocum/ArchCon/SDHistoDipu/SDIndHistDipBuscador
Histórico de Diputadoshttp://www.congreso.es/portal/page/portal/Congreso/Congreso/SDocum/ArchCon/SDHistoDipu/SDBuscHisDip