-
Notifications
You must be signed in to change notification settings - Fork 10
Local town website extraction for Maine
The following instructions help with identifying local town or city websites listed on the Maine.gov website. Source page to list towns by county, https://www.maine.gov/local/
Click to expand (514 lines)
Place the list below in a text file.https://www.maine.gov/local/town.php?t=Abbot https://www.maine.gov/local/town.php?t=Acton https://www.maine.gov/local/town.php?t=Addison https://www.maine.gov/local/town.php?t=Albany+Twp https://www.maine.gov/local/town.php?t=Albion https://www.maine.gov/local/town.php?t=Alexander https://www.maine.gov/local/town.php?t=Alfred https://www.maine.gov/local/town.php?t=Allagash https://www.maine.gov/local/town.php?t=Alna https://www.maine.gov/local/town.php?t=Alton https://www.maine.gov/local/town.php?t=Amherst https://www.maine.gov/local/town.php?t=Amity https://www.maine.gov/local/town.php?t=Andover https://www.maine.gov/local/town.php?t=Anson https://www.maine.gov/local/town.php?t=Appleton https://www.maine.gov/local/town.php?t=Arrowsic https://www.maine.gov/local/town.php?t=Arundel https://www.maine.gov/local/town.php?t=Ashland https://www.maine.gov/local/town.php?t=Athens https://www.maine.gov/local/town.php?t=Atkinson https://www.maine.gov/local/town.php?t=Auburn https://www.maine.gov/local/town.php?t=Augusta https://www.maine.gov/local/town.php?t=Aurora https://www.maine.gov/local/town.php?t=Avon https://www.maine.gov/local/town.php?t=Baileyville https://www.maine.gov/local/town.php?t=Baldwin https://www.maine.gov/local/town.php?t=Bancroft https://www.maine.gov/local/town.php?t=Bangor https://www.maine.gov/local/town.php?t=Bar+Harbor https://www.maine.gov/local/town.php?t=Baring+Plantation https://www.maine.gov/local/town.php?t=Bath https://www.maine.gov/local/town.php?t=Beals https://www.maine.gov/local/town.php?t=Beaver+Cove https://www.maine.gov/local/town.php?t=Beddington https://www.maine.gov/local/town.php?t=Belfast https://www.maine.gov/local/town.php?t=Belgrade https://www.maine.gov/local/town.php?t=Belmont https://www.maine.gov/local/town.php?t=Benedicta+Twp https://www.maine.gov/local/town.php?t=Benton https://www.maine.gov/local/town.php?t=Berwick https://www.maine.gov/local/town.php?t=Bethel https://www.maine.gov/local/town.php?t=Biddeford https://www.maine.gov/local/town.php?t=Bingham https://www.maine.gov/local/town.php?t=Blaine https://www.maine.gov/local/town.php?t=Blue+Hill https://www.maine.gov/local/town.php?t=Boothbay https://www.maine.gov/local/town.php?t=Boothbay+Harbor https://www.maine.gov/local/town.php?t=Bowdoin https://www.maine.gov/local/town.php?t=Bowdoinham https://www.maine.gov/local/town.php?t=Bowerbank https://www.maine.gov/local/town.php?t=Bradford https://www.maine.gov/local/town.php?t=Bradley https://www.maine.gov/local/town.php?t=Bremen https://www.maine.gov/local/town.php?t=Brewer https://www.maine.gov/local/town.php?t=Bridgewater https://www.maine.gov/local/town.php?t=Bridgton https://www.maine.gov/local/town.php?t=Brighton+Plt https://www.maine.gov/local/town.php?t=Bristol https://www.maine.gov/local/town.php?t=Brooklin https://www.maine.gov/local/town.php?t=Brooks https://www.maine.gov/local/town.php?t=Brooksville https://www.maine.gov/local/town.php?t=Brookton+Twp https://www.maine.gov/local/town.php?t=Brownfield https://www.maine.gov/local/town.php?t=Brownville https://www.maine.gov/local/town.php?t=Brunswick https://www.maine.gov/local/town.php?t=Buckfield https://www.maine.gov/local/town.php?t=Bucksport https://www.maine.gov/local/town.php?t=Burlington https://www.maine.gov/local/town.php?t=Burnham https://www.maine.gov/local/town.php?t=Buxton https://www.maine.gov/local/town.php?t=Byron https://www.maine.gov/local/town.php?t=Calais https://www.maine.gov/local/town.php?t=Cambridge https://www.maine.gov/local/town.php?t=Camden https://www.maine.gov/local/town.php?t=Canaan https://www.maine.gov/local/town.php?t=Canton https://www.maine.gov/local/town.php?t=Cape+Elizabeth https://www.maine.gov/local/town.php?t=Caratunk https://www.maine.gov/local/town.php?t=Caribou https://www.maine.gov/local/town.php?t=Carmel https://www.maine.gov/local/town.php?t=Carrabassett+Valley https://www.maine.gov/local/town.php?t=Carroll+Plt https://www.maine.gov/local/town.php?t=Carthage https://www.maine.gov/local/town.php?t=Cary+Plt https://www.maine.gov/local/town.php?t=Casco https://www.maine.gov/local/town.php?t=Castine https://www.maine.gov/local/town.php?t=Castle+Hill https://www.maine.gov/local/town.php?t=Caswell https://www.maine.gov/local/town.php?t=Centerville https://www.maine.gov/local/town.php?t=Chapman https://www.maine.gov/local/town.php?t=Charleston https://www.maine.gov/local/town.php?t=Charlotte https://www.maine.gov/local/town.php?t=Chebeague+Island https://www.maine.gov/local/town.php?t=Chelsea https://www.maine.gov/local/town.php?t=Cherryfield https://www.maine.gov/local/town.php?t=Chester https://www.maine.gov/local/town.php?t=Chesterville https://www.maine.gov/local/town.php?t=China https://www.maine.gov/local/town.php?t=Clifton https://www.maine.gov/local/town.php?t=Clinton https://www.maine.gov/local/town.php?t=Codyville+Plt https://www.maine.gov/local/town.php?t=Columbia https://www.maine.gov/local/town.php?t=Columbia+Falls https://www.maine.gov/local/town.php?t=Connor+Twp https://www.maine.gov/local/town.php?t=Cooper https://www.maine.gov/local/town.php?t=Coplin+Plt https://www.maine.gov/local/town.php?t=Corinna https://www.maine.gov/local/town.php?t=Corinth https://www.maine.gov/local/town.php?t=Cornish https://www.maine.gov/local/town.php?t=Cornville https://www.maine.gov/local/town.php?t=Cranberry+Isles https://www.maine.gov/local/town.php?t=Crawford https://www.maine.gov/local/town.php?t=Crystal https://www.maine.gov/local/town.php?t=Cumberland https://www.maine.gov/local/town.php?t=Cushing https://www.maine.gov/local/town.php?t=Cutler https://www.maine.gov/local/town.php?t=Cyr+Plt https://www.maine.gov/local/town.php?t=Dallas+Plt https://www.maine.gov/local/town.php?t=Damariscotta https://www.maine.gov/local/town.php?t=Danforth https://www.maine.gov/local/town.php?t=Dayton https://www.maine.gov/local/town.php?t=Deblois https://www.maine.gov/local/town.php?t=Dedham https://www.maine.gov/local/town.php?t=Deer+Isle https://www.maine.gov/local/town.php?t=Denmark https://www.maine.gov/local/town.php?t=Dennistown+Plt https://www.maine.gov/local/town.php?t=Dennysville https://www.maine.gov/local/town.php?t=Detroit https://www.maine.gov/local/town.php?t=Dexter https://www.maine.gov/local/town.php?t=Dixfield https://www.maine.gov/local/town.php?t=Dixmont https://www.maine.gov/local/town.php?t=Dover-Foxcroft https://www.maine.gov/local/town.php?t=Dresden https://www.maine.gov/local/town.php?t=Drew+Plt https://www.maine.gov/local/town.php?t=Durham https://www.maine.gov/local/town.php?t=Dyer+Brook https://www.maine.gov/local/town.php?t=Eagle+Lake https://www.maine.gov/local/town.php?t=East+Machias https://www.maine.gov/local/town.php?t=East+Millinocket https://www.maine.gov/local/town.php?t=Eastbrook https://www.maine.gov/local/town.php?t=Easton https://www.maine.gov/local/town.php?t=Eastport https://www.maine.gov/local/town.php?t=Eddington https://www.maine.gov/local/town.php?t=Edgecomb https://www.maine.gov/local/town.php?t=Edinburg https://www.maine.gov/local/town.php?t=Edmunds+Twp https://www.maine.gov/local/town.php?t=Eliot https://www.maine.gov/local/town.php?t=Ellsworth https://www.maine.gov/local/town.php?t=Embden https://www.maine.gov/local/town.php?t=Enfield https://www.maine.gov/local/town.php?t=Etna https://www.maine.gov/local/town.php?t=Eustis https://www.maine.gov/local/town.php?t=Exeter https://www.maine.gov/local/town.php?t=Fairfield https://www.maine.gov/local/town.php?t=Falmouth https://www.maine.gov/local/town.php?t=Farmingdale https://www.maine.gov/local/town.php?t=Farmington https://www.maine.gov/local/town.php?t=Fayette https://www.maine.gov/local/town.php?t=Fort+Fairfield https://www.maine.gov/local/town.php?t=Fort+Kent https://www.maine.gov/local/town.php?t=Frankfort https://www.maine.gov/local/town.php?t=Franklin https://www.maine.gov/local/town.php?t=Freedom https://www.maine.gov/local/town.php?t=Freeman+Twp https://www.maine.gov/local/town.php?t=Freeport https://www.maine.gov/local/town.php?t=Frenchboro https://www.maine.gov/local/town.php?t=Frenchville https://www.maine.gov/local/town.php?t=Friendship https://www.maine.gov/local/town.php?t=Frye+Island https://www.maine.gov/local/town.php?t=Fryeburg https://www.maine.gov/local/town.php?t=Gardiner https://www.maine.gov/local/town.php?t=Garfield+Plt https://www.maine.gov/local/town.php?t=Garland https://www.maine.gov/local/town.php?t=Georgetown https://www.maine.gov/local/town.php?t=Gilead https://www.maine.gov/local/town.php?t=Glenburn https://www.maine.gov/local/town.php?t=Glenwood+Plt https://www.maine.gov/local/town.php?t=Gorham https://www.maine.gov/local/town.php?t=Gouldsboro https://www.maine.gov/local/town.php?t=Grand+Isle https://www.maine.gov/local/town.php?t=Grand+Lake+Stream+Plt https://www.maine.gov/local/town.php?t=Gray https://www.maine.gov/local/town.php?t=Great+Pond https://www.maine.gov/local/town.php?t=Greenbush https://www.maine.gov/local/town.php?t=Greene https://www.maine.gov/local/town.php?t=Greenville https://www.maine.gov/local/town.php?t=Greenwood https://www.maine.gov/local/town.php?t=Guilford https://www.maine.gov/local/town.php?t=Hallowell https://www.maine.gov/local/town.php?t=Hamlin https://www.maine.gov/local/town.php?t=Hammond https://www.maine.gov/local/town.php?t=Hampden https://www.maine.gov/local/town.php?t=Hancock https://www.maine.gov/local/town.php?t=Hanover https://www.maine.gov/local/town.php?t=Harmony https://www.maine.gov/local/town.php?t=Harpswell https://www.maine.gov/local/town.php?t=Harrington https://www.maine.gov/local/town.php?t=Harrison https://www.maine.gov/local/town.php?t=Hartford https://www.maine.gov/local/town.php?t=Hartland https://www.maine.gov/local/town.php?t=Haynesville https://www.maine.gov/local/town.php?t=Hebron https://www.maine.gov/local/town.php?t=Hermon https://www.maine.gov/local/town.php?t=Hersey https://www.maine.gov/local/town.php?t=Highland+Plt https://www.maine.gov/local/town.php?t=Hiram https://www.maine.gov/local/town.php?t=Hodgdon https://www.maine.gov/local/town.php?t=Holden https://www.maine.gov/local/town.php?t=Hollis https://www.maine.gov/local/town.php?t=Hope https://www.maine.gov/local/town.php?t=Houlton https://www.maine.gov/local/town.php?t=Howland https://www.maine.gov/local/town.php?t=Hudson https://www.maine.gov/local/town.php?t=Indian+Island https://www.maine.gov/local/town.php?t=Indian+Twp+Res https://www.maine.gov/local/town.php?t=Industry https://www.maine.gov/local/town.php?t=Island+Falls https://www.maine.gov/local/town.php?t=Isle+Au+Haut https://www.maine.gov/local/town.php?t=Islesboro https://www.maine.gov/local/town.php?t=Jackman https://www.maine.gov/local/town.php?t=Jackson https://www.maine.gov/local/town.php?t=Jay https://www.maine.gov/local/town.php?t=Jefferson https://www.maine.gov/local/town.php?t=Jonesboro https://www.maine.gov/local/town.php?t=Jonesport https://www.maine.gov/local/town.php?t=Kenduskeag https://www.maine.gov/local/town.php?t=Kennebunk https://www.maine.gov/local/town.php?t=Kennebunkport https://www.maine.gov/local/town.php?t=Kingfield https://www.maine.gov/local/town.php?t=Kingman+Twp https://www.maine.gov/local/town.php?t=Kingsbury+Plt https://www.maine.gov/local/town.php?t=Kittery https://www.maine.gov/local/town.php?t=Knox https://www.maine.gov/local/town.php?t=Lagrange https://www.maine.gov/local/town.php?t=Lake+View+Plt https://www.maine.gov/local/town.php?t=Lakeville https://www.maine.gov/local/town.php?t=Lamoine https://www.maine.gov/local/town.php?t=Lebanon https://www.maine.gov/local/town.php?t=Lee https://www.maine.gov/local/town.php?t=Leeds https://www.maine.gov/local/town.php?t=Levant https://www.maine.gov/local/town.php?t=Lewiston https://www.maine.gov/local/town.php?t=Liberty https://www.maine.gov/local/town.php?t=Limerick https://www.maine.gov/local/town.php?t=Limestone https://www.maine.gov/local/town.php?t=Limington https://www.maine.gov/local/town.php?t=Lincoln https://www.maine.gov/local/town.php?t=Lincoln+Plt https://www.maine.gov/local/town.php?t=Lincolnville https://www.maine.gov/local/town.php?t=Linneus https://www.maine.gov/local/town.php?t=Lisbon https://www.maine.gov/local/town.php?t=Litchfield https://www.maine.gov/local/town.php?t=Littleton https://www.maine.gov/local/town.php?t=Livermore https://www.maine.gov/local/town.php?t=Livermore+Falls https://www.maine.gov/local/town.php?t=Long+Island https://www.maine.gov/local/town.php?t=Lovell https://www.maine.gov/local/town.php?t=Lowell https://www.maine.gov/local/town.php?t=Lubec https://www.maine.gov/local/town.php?t=Ludlow https://www.maine.gov/local/town.php?t=Lyman https://www.maine.gov/local/town.php?t=Machias https://www.maine.gov/local/town.php?t=Machiasport https://www.maine.gov/local/town.php?t=Macwahoc+Plt https://www.maine.gov/local/town.php?t=Madawaska https://www.maine.gov/local/town.php?t=Madison https://www.maine.gov/local/town.php?t=Madrid+Twp https://www.maine.gov/local/town.php?t=Magalloway+Plt https://www.maine.gov/local/town.php?t=Manchester https://www.maine.gov/local/town.php?t=Mapleton https://www.maine.gov/local/town.php?t=Mariaville https://www.maine.gov/local/town.php?t=Mars+Hill https://www.maine.gov/local/town.php?t=Marshfield https://www.maine.gov/local/town.php?t=Masardis https://www.maine.gov/local/town.php?t=Matinicus+Isle+Plt https://www.maine.gov/local/town.php?t=Mattawamkeag https://www.maine.gov/local/town.php?t=Maxfield https://www.maine.gov/local/town.php?t=Mechanic+Falls https://www.maine.gov/local/town.php?t=Meddybemps https://www.maine.gov/local/town.php?t=Medford https://www.maine.gov/local/town.php?t=Medway https://www.maine.gov/local/town.php?t=Mercer https://www.maine.gov/local/town.php?t=Merrill https://www.maine.gov/local/town.php?t=Mexico https://www.maine.gov/local/town.php?t=Milbridge https://www.maine.gov/local/town.php?t=Milford https://www.maine.gov/local/town.php?t=Millinocket https://www.maine.gov/local/town.php?t=Milo https://www.maine.gov/local/town.php?t=Milton+Twp https://www.maine.gov/local/town.php?t=Minot https://www.maine.gov/local/town.php?t=Monhegan+Island+Plt https://www.maine.gov/local/town.php?t=Monmouth https://www.maine.gov/local/town.php?t=Monroe https://www.maine.gov/local/town.php?t=Monson https://www.maine.gov/local/town.php?t=Monticello https://www.maine.gov/local/town.php?t=Montville https://www.maine.gov/local/town.php?t=Moose+River https://www.maine.gov/local/town.php?t=Moro+Plt https://www.maine.gov/local/town.php?t=Morrill https://www.maine.gov/local/town.php?t=Moscow https://www.maine.gov/local/town.php?t=Mount+Chase https://www.maine.gov/local/town.php?t=Mount+Desert https://www.maine.gov/local/town.php?t=Mount+Vernon https://www.maine.gov/local/town.php?t=Naples https://www.maine.gov/local/town.php?t=Nashville+Plt https://www.maine.gov/local/town.php?t=New+Canada https://www.maine.gov/local/town.php?t=New+Gloucester https://www.maine.gov/local/town.php?t=New+Limerick https://www.maine.gov/local/town.php?t=New+Portland https://www.maine.gov/local/town.php?t=New+Sharon https://www.maine.gov/local/town.php?t=New+Sweden https://www.maine.gov/local/town.php?t=New+Vineyard https://www.maine.gov/local/town.php?t=Newburgh https://www.maine.gov/local/town.php?t=Newcastle https://www.maine.gov/local/town.php?t=Newfield https://www.maine.gov/local/town.php?t=Newport https://www.maine.gov/local/town.php?t=Newry https://www.maine.gov/local/town.php?t=No+14+Twp https://www.maine.gov/local/town.php?t=No+21+Twp https://www.maine.gov/local/town.php?t=Nobleboro https://www.maine.gov/local/town.php?t=Norridgewock https://www.maine.gov/local/town.php?t=North+Berwick https://www.maine.gov/local/town.php?t=North+Haven https://www.maine.gov/local/town.php?t=North+Yarmouth https://www.maine.gov/local/town.php?t=Northfield https://www.maine.gov/local/town.php?t=Northport https://www.maine.gov/local/town.php?t=Norway https://www.maine.gov/local/town.php?t=Oakfield https://www.maine.gov/local/town.php?t=Oakland https://www.maine.gov/local/town.php?t=Ogunquit https://www.maine.gov/local/town.php?t=Old+Orchard+Beach https://www.maine.gov/local/town.php?t=Old+Town https://www.maine.gov/local/town.php?t=Orient https://www.maine.gov/local/town.php?t=Orland https://www.maine.gov/local/town.php?t=Orneville+Twp https://www.maine.gov/local/town.php?t=Orono https://www.maine.gov/local/town.php?t=Orrington https://www.maine.gov/local/town.php?t=Osborn https://www.maine.gov/local/town.php?t=Otis https://www.maine.gov/local/town.php?t=Otisfield https://www.maine.gov/local/town.php?t=Owls+Head https://www.maine.gov/local/town.php?t=Oxbow+Plt https://www.maine.gov/local/town.php?t=Oxford https://www.maine.gov/local/town.php?t=Palermo https://www.maine.gov/local/town.php?t=Palmyra https://www.maine.gov/local/town.php?t=Paris https://www.maine.gov/local/town.php?t=Parkman https://www.maine.gov/local/town.php?t=Parsonsfield https://www.maine.gov/local/town.php?t=Passadumkeag https://www.maine.gov/local/town.php?t=Patten https://www.maine.gov/local/town.php?t=Pembroke https://www.maine.gov/local/town.php?t=Penobscot https://www.maine.gov/local/town.php?t=Penobscot+Nation+Voting+District https://www.maine.gov/local/town.php?t=Perham https://www.maine.gov/local/town.php?t=Perkins+Twp https://www.maine.gov/local/town.php?t=Perry https://www.maine.gov/local/town.php?t=Peru https://www.maine.gov/local/town.php?t=Phillips https://www.maine.gov/local/town.php?t=Phippsburg https://www.maine.gov/local/town.php?t=Pittsfield https://www.maine.gov/local/town.php?t=Pittston https://www.maine.gov/local/town.php?t=Pleasant+Point+Ind+Res https://www.maine.gov/local/town.php?t=Pleasant+Ridge+Plt https://www.maine.gov/local/town.php?t=Plymouth https://www.maine.gov/local/town.php?t=Poland https://www.maine.gov/local/town.php?t=Portage+Lake https://www.maine.gov/local/town.php?t=Porter https://www.maine.gov/local/town.php?t=Portland https://www.maine.gov/local/town.php?t=Pownal https://www.maine.gov/local/town.php?t=Prentiss+Twp+T7+R3+NBPP https://www.maine.gov/local/town.php?t=Presque+Isle https://www.maine.gov/local/town.php?t=Princeton https://www.maine.gov/local/town.php?t=Prospect https://www.maine.gov/local/town.php?t=Randolph https://www.maine.gov/local/town.php?t=Rangeley https://www.maine.gov/local/town.php?t=Rangeley+Plt https://www.maine.gov/local/town.php?t=Raymond https://www.maine.gov/local/town.php?t=Readfield https://www.maine.gov/local/town.php?t=Reed+Plt https://www.maine.gov/local/town.php?t=Richmond https://www.maine.gov/local/town.php?t=Ripley https://www.maine.gov/local/town.php?t=Robbinston https://www.maine.gov/local/town.php?t=Rockland https://www.maine.gov/local/town.php?t=Rockport https://www.maine.gov/local/town.php?t=Rockwood+Strip+T1+R1+NBKP https://www.maine.gov/local/town.php?t=Rome https://www.maine.gov/local/town.php?t=Roque+Bluffs https://www.maine.gov/local/town.php?t=Roxbury https://www.maine.gov/local/town.php?t=Rumford https://www.maine.gov/local/town.php?t=Sabattus https://www.maine.gov/local/town.php?t=Saco https://www.maine.gov/local/town.php?t=Saint+Agatha https://www.maine.gov/local/town.php?t=Saint+Albans https://www.maine.gov/local/town.php?t=Saint+Francis https://www.maine.gov/local/town.php?t=Saint+George https://www.maine.gov/local/town.php?t=Saint+John+Plt https://www.maine.gov/local/town.php?t=Sandy+River+Plt https://www.maine.gov/local/town.php?t=Sanford https://www.maine.gov/local/town.php?t=Sangerville https://www.maine.gov/local/town.php?t=Scarborough https://www.maine.gov/local/town.php?t=Searsmont https://www.maine.gov/local/town.php?t=Searsport https://www.maine.gov/local/town.php?t=Sebago https://www.maine.gov/local/town.php?t=Sebec https://www.maine.gov/local/town.php?t=Seboeis+Plt https://www.maine.gov/local/town.php?t=Sedgwick https://www.maine.gov/local/town.php?t=Shapleigh https://www.maine.gov/local/town.php?t=Sherman https://www.maine.gov/local/town.php?t=Shirley https://www.maine.gov/local/town.php?t=Sidney https://www.maine.gov/local/town.php?t=Skowhegan https://www.maine.gov/local/town.php?t=Smithfield https://www.maine.gov/local/town.php?t=Smyrna https://www.maine.gov/local/town.php?t=Solon https://www.maine.gov/local/town.php?t=Somerville https://www.maine.gov/local/town.php?t=Sorrento https://www.maine.gov/local/town.php?t=South+Berwick https://www.maine.gov/local/town.php?t=South+Bristol https://www.maine.gov/local/town.php?t=South+Portland https://www.maine.gov/local/town.php?t=South+Thomaston https://www.maine.gov/local/town.php?t=Southport https://www.maine.gov/local/town.php?t=Southwest+Harbor https://www.maine.gov/local/town.php?t=Springfield https://www.maine.gov/local/town.php?t=Stacyville https://www.maine.gov/local/town.php?t=Standish https://www.maine.gov/local/town.php?t=Starks https://www.maine.gov/local/town.php?t=Stetson https://www.maine.gov/local/town.php?t=Steuben https://www.maine.gov/local/town.php?t=Stockholm https://www.maine.gov/local/town.php?t=Stockton+Springs https://www.maine.gov/local/town.php?t=Stoneham https://www.maine.gov/local/town.php?t=Stonington https://www.maine.gov/local/town.php?t=Stow https://www.maine.gov/local/town.php?t=Strong https://www.maine.gov/local/town.php?t=Sullivan https://www.maine.gov/local/town.php?t=Sumner https://www.maine.gov/local/town.php?t=Surry https://www.maine.gov/local/town.php?t=Swans+Island https://www.maine.gov/local/town.php?t=Swanville https://www.maine.gov/local/town.php?t=Sweden https://www.maine.gov/local/town.php?t=T1+R9+WELS https://www.maine.gov/local/town.php?t=T17+R4+WELS https://www.maine.gov/local/town.php?t=T17+R5+WELS https://www.maine.gov/local/town.php?t=Talmadge https://www.maine.gov/local/town.php?t=Temple https://www.maine.gov/local/town.php?t=The+Forks+Plt https://www.maine.gov/local/town.php?t=Thomaston https://www.maine.gov/local/town.php?t=Thorndike https://www.maine.gov/local/town.php?t=Topsfield https://www.maine.gov/local/town.php?t=Topsham https://www.maine.gov/local/town.php?t=Tremont https://www.maine.gov/local/town.php?t=Trenton https://www.maine.gov/local/town.php?t=Trescott+Twp https://www.maine.gov/local/town.php?t=Troy https://www.maine.gov/local/town.php?t=Turner https://www.maine.gov/local/town.php?t=Union https://www.maine.gov/local/town.php?t=Unity https://www.maine.gov/local/town.php?t=Upton https://www.maine.gov/local/town.php?t=Van+Buren https://www.maine.gov/local/town.php?t=Vanceboro https://www.maine.gov/local/town.php?t=Vassalboro https://www.maine.gov/local/town.php?t=Veazie https://www.maine.gov/local/town.php?t=Verona+Island https://www.maine.gov/local/town.php?t=Vienna https://www.maine.gov/local/town.php?t=Vinalhaven https://www.maine.gov/local/town.php?t=Wade https://www.maine.gov/local/town.php?t=Waite https://www.maine.gov/local/town.php?t=Waldo https://www.maine.gov/local/town.php?t=Waldoboro https://www.maine.gov/local/town.php?t=Wales https://www.maine.gov/local/town.php?t=Wallagrass https://www.maine.gov/local/town.php?t=Waltham https://www.maine.gov/local/town.php?t=Warren https://www.maine.gov/local/town.php?t=Washburn https://www.maine.gov/local/town.php?t=Washington https://www.maine.gov/local/town.php?t=Waterboro https://www.maine.gov/local/town.php?t=Waterford https://www.maine.gov/local/town.php?t=Waterville https://www.maine.gov/local/town.php?t=Wayne https://www.maine.gov/local/town.php?t=Webster+Plt https://www.maine.gov/local/town.php?t=Weld https://www.maine.gov/local/town.php?t=Wellington https://www.maine.gov/local/town.php?t=Wells https://www.maine.gov/local/town.php?t=Wesley https://www.maine.gov/local/town.php?t=West+Bath https://www.maine.gov/local/town.php?t=West+Forks+Plt https://www.maine.gov/local/town.php?t=West+Gardiner https://www.maine.gov/local/town.php?t=West+Paris https://www.maine.gov/local/town.php?t=Westbrook https://www.maine.gov/local/town.php?t=Westfield https://www.maine.gov/local/town.php?t=Westmanland https://www.maine.gov/local/town.php?t=Weston https://www.maine.gov/local/town.php?t=Westport https://www.maine.gov/local/town.php?t=Westport+Island https://www.maine.gov/local/town.php?t=Whitefield https://www.maine.gov/local/town.php?t=Whiting https://www.maine.gov/local/town.php?t=Whitneyville https://www.maine.gov/local/town.php?t=Willimantic https://www.maine.gov/local/town.php?t=Wilton https://www.maine.gov/local/town.php?t=Windham https://www.maine.gov/local/town.php?t=Windsor https://www.maine.gov/local/town.php?t=Winn https://www.maine.gov/local/town.php?t=Winslow https://www.maine.gov/local/town.php?t=Winter+Harbor https://www.maine.gov/local/town.php?t=Winterport https://www.maine.gov/local/town.php?t=Winterville+Plt https://www.maine.gov/local/town.php?t=Winthrop https://www.maine.gov/local/town.php?t=Wiscasset https://www.maine.gov/local/town.php?t=Woodland https://www.maine.gov/local/town.php?t=Woodstock https://www.maine.gov/local/town.php?t=Woodville https://www.maine.gov/local/town.php?t=Woolwich https://www.maine.gov/local/town.php?t=Yarmouth https://www.maine.gov/local/town.php?t=York https://www.maine.gov/local/town.php?t=
Download the Maine State websites that are listed in the text file using the command below.
wget -i TownsMaine.txt --wait=15 --random-wait
The command utilizes wget available in Unix style command lines. The specific options:
-
-i TownsMaine.txt
: Uses the input file created above to identify the websites to download -
--wait=15 --random-wait
: Waits 15 seconds with a random seed to jiggle the time frame from 0.5 to 1.5 times the wait time. This was chosen to avoid overloading the web service. Total download time can range from 64 to 193 minutes (approx. 1 to 3.25 hours). Running this command fully using this wait time seed, I had a total wall clock time of 2hrs 28min (20 min longer than running 15 sec wait time without the jiggle).
Once the wget command finishes utlize a perl script similar to the below:
Click to expand and see script
#!/usr/bin/perl -w
use warnings 'all'; use strict; use feature qw(say);
opendir(DIR, "."); my @files = grep(/^town.php/,readdir(DIR)); closedir(DIR);
my $file = "";
foreach $file (@files) {
open my $filetree, '<', $file or die "Cannot open file $!";
undef $/;
my $String = <$filetree>;
my @matches = $String =~ /name\=(\D*)\&.*\n.*\n.*\n.*\n.*\<a href\=\"(.*)\"/mg;
open my $fh, '>>', "TownsMaineClerks.txt" or die "Cannot open file $!";
foreach (@matches)
{
print $fh "$_,"; # Print each entry in our array to the file
}
close $fh; # Not necessary, but nice to do
close $filetree;
}
This should output a file with the name TownsMaineClerks.txt, a comma delimited file that lists the town name with its website.