In [40]:
from bs4 import BeautifulSoup
import urllib
import requests
In [57]:
r = requests.get("http://ebird.org/ws1.1/data/obs/geo/recent?lng=-111.83&lat=41.74")
r = urllib.urlopen("http://ebird.org/ws1.1/data/obs/geo/recent?lng=-111.83&lat=41.74")
In [58]:
soup = BeautifulSoup(r)
In [59]:
for sighting in soup.find_all('sighting'):
    print sighting.lat.text, sighting.lng.text, sighting.find('sci-name').text, 
Junco hyemalis 41.7514044 -111.8220502
Spinus pinus 41.7514044 -111.8220502
Haemorhous mexicanus 41.7514044 -111.8220502
Picoides pubescens 41.7514044 -111.8220502
Poecile atricapillus 41.7514044 -111.8220502
Nucifraga columbiana 41.7434518 -111.8099213
Regulus calendula 41.7434518 -111.8099213
Myadestes townsendi 41.7434518 -111.8099213
Corvus brachyrhynchos 41.7434518 -111.8099213
Branta canadensis 41.7434518 -111.8099213
Buteo jamaicensis 41.7434518 -111.8099213
Bombycilla cedrorum 41.7434518 -111.8099213
Pica hudsonia 41.7434518 -111.8099213
Setophaga coronata 41.7434518 -111.8099213
Columba livia 41.7434518 -111.8099213
Anser anser (Domestic type) 41.7422935 -111.7898228
Anas strepera 41.7422935 -111.7898228
Megaceryle alcyon 41.7422935 -111.7898228
Falco sparverius 41.7422935 -111.7898228
Bucephala clangula 41.7422935 -111.7898228
Larus californicus 41.7422935 -111.7898228
Lophodytes cucullatus 41.7422935 -111.7898228
Larus sp. 41.7422935 -111.7898228
Anas platyrhynchos 41.7422935 -111.7898228
Anas platyrhynchos (Domestic type) 41.7422935 -111.7898228
Bucephala islandica 41.7422935 -111.7898228
Colaptes auratus 41.7422935 -111.7898228
Fulica americana 41.7320355 -111.8809032
Accipiter striatus 41.7320355 -111.8809032
Larus argentatus 41.7320355 -111.8809032
Aythya collaris 41.7320355 -111.8809032
Podiceps nigricollis 41.7320355 -111.8809032
Anas clypeata 41.7320355 -111.8809032
Corvus corax 41.7320355 -111.8809032
Aythya valisineria 41.7320355 -111.8809032
Bucephala albeola 41.7320355 -111.8809032
Euphagus cyanocephalus 41.7320355 -111.8809032
Circus cyaneus 41.7320355 -111.8809032
Sturnus vulgaris 41.7320355 -111.8809032
Agelaius phoeniceus 41.7320355 -111.8809032
Larus delawarensis 41.7320355 -111.8809032
Melospiza melodia 41.7331789 -111.8258546
Zenaida macroura 41.8372115 -111.8244696
Certhia americana 41.8372115 -111.8244696
Spinus tristis 41.8372115 -111.8244696
Bubo virginianus 41.8372115 -111.8244696
Pipilo maculatus 41.7391689 -111.7970467
Passer domesticus 41.7349738 -111.8745947
Zonotrichia leucophrys 41.7349738 -111.8745947
Phasianus colchicus 41.7349738 -111.8745947
Turdus migratorius 41.7679349 -111.7776275
Icteridae sp. 41.7528413 -111.8640331
Podilymbus podiceps 41.7320355 -111.8809032
Cistothorus palustris 41.7320355 -111.8809032
Haliaeetus leucocephalus 41.7519767 -111.8814182
Charadrius vociferus 41.7519767 -111.8814182
Buteo lagopus 41.7519767 -111.8814182
Falco columbarius 41.7511318 -111.8043423
Loxia curvirostra 41.8372115 -111.8244696
Streptopelia decaocto 41.8372115 -111.8244696
Anas crecca 41.7320355 -111.8809032
Aythya affinis 41.7320355 -111.8809032
Meleagris gallopavo 41.5260577 -111.8142128
Sitta canadensis 41.7514044 -111.8220502
Anas americana 41.924632 -111.8369579
Aythya americana 41.924632 -111.8369579
Aechmophorus occidentalis 41.61963 -111.8595
Ardea herodias 41.61963 -111.8595
Oxyura jamaicensis 41.61963 -111.8595
Spinus psaltria 41.61963 -111.8595
Anas acuta 41.61963 -111.8595
Mergus merganser 41.61963 -111.8595
Bombycilla garrulus 41.8372115 -111.8244696
Anatinae sp. 41.7391689 -111.7970467
Cinclus mexicanus 41.7391689 -111.7970467
Poecile gambeli 41.8372115 -111.8244696
Larinae sp. 41.7320355 -111.8809032
Regulus satrapa 41.8372115 -111.8244696
Cygnus columbianus 41.8956649 -111.9734287
Emberizidae sp. (sparrow sp.) 41.8956649 -111.9734287
Mergus serrator 41.8956649 -111.9734287
Sitta carolinensis 41.8372115 -111.8244696
Zonotrichia albicollis 41.7391689 -111.7970467
Rallus limicola 41.7320355 -111.8809032
Lanius excubitor 41.7320355 -111.8809032
Cyanocitta cristata 41.8372115 -111.8244696
Calypte anna 41.8520804 -111.8327657
Callipepla californica 41.740738 -111.8050504
Megascops kennicottii 41.740738 -111.8050504
Accipiter cooperii 41.740738 -111.8050504
Glaucidium gnoma 41.7536896 -111.7166984
Bombycilla garrulus/cedrorum 41.733929 -111.8190783
Aythya marila/affinis 41.61963 -111.8595
Podiceps auritus 41.61963 -111.8595
Gavia immer 41.61963 -111.8595
Aechmophorus clarkii 41.61963 -111.8595
Anthus rubescens 41.61963 -111.8595
Picidae sp. 41.61963 -111.8595
Falco sp. (small falcon sp.) 41.9633434 -111.8073061
Bucephala clangula/islandica 41.7422935 -111.7898228
Limnodromus scolopaceus 41.7320355 -111.8809032
Coccothraustes vespertinus 41.733929 -111.8190783
Accipiter sp. 41.733929 -111.8190783
Acanthis flammea 41.733929 -111.8190783