Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a list of 40 city names, I need to find out each cities train stations.

This wiki page will be perfect, it lists the cities and each city page has the train stations that i am looking for.http://en.wikipedia.org/wiki/Category:Lists_of_metro_stations

However, each page is laid out differently. Some have just lists, some have tables but with different number of columns and headings etc.

I can write a script but i wont be able to train it for each of these pages, It will take too long.

I don't mind doing a little manual work.

My question is, what's a good way to go on about this task? is there a browser extension or desktop application to help me do this. If I attempt writing a script is there any short cuts i can take?

share|improve this question
You can use the Mediawiki API to fetch specific sections of a Wikipedia article programmatically - mvark.blogspot.in/2012/10/how-to-extract-wikipedia-content.html or you can explore Yahoo Query Language (YQL) to parse - developer.yahoo.com/yql –  mvark Oct 14 '13 at 17:23
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.