Mortgage Scraper
1.0.0
I created this code as I wanted to buy my first house. I wanted to keep an eye on the mortgage offerings so I could keep an eye on the market trends. I could then easily run some queries to compare mortgages to find the best deal.
CREATE TABLE `mortgages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`rundate` date NOT NULL,
`url` varchar(500) NOT NULL DEFAULT '',
`lender` text NOT NULL,
`typeOfMortgage` text NOT NULL,
`borrowAmount` decimal(10,2) NOT NULL,
`houseValue` decimal(10,2) NOT NULL,
`term` int(2) NOT NULL,
`initialRate` text NOT NULL,
`revertRate` text NOT NULL,
`maxLTV` text NOT NULL,
`initialPeriod` text NOT NULL,
`minMaxMortgageAmount` text NOT NULL,
`minimumAge` text NOT NULL,
`initialMonthlyRepayments` text NOT NULL,
`monthlyRepaymentsAfter` text NOT NULL,
`totalAmountToRepay` decimal(10,2) NOT NULL,
`TotalAmountOfInterest` decimal(10,2) NOT NULL,
`overpayments` text NOT NULL,
`paymentHolidays` text NOT NULL,
`portable` text NOT NULL,
`cashback` text NOT NULL,
`fees` decimal(10,2) NOT NULL,
`valuationReport` text NOT NULL,
`homebuyerSurvey` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Edit the SQL connection details in the mortgage.py file to point it to your SQL database.