Check out api.tfl.gov.uk which should have everything you need for London in a more structured format.
I used this exact API extensively for both buses and tubes :)
I used this exact API extensively for both buses and tubes :)