python - Get attribute is None in BeautifulSoup -


i'm trying api key website below, having issues locating key within html. api_key below comes null every time run code, though i've followed other examples explicitly. issue parser i'm using?

site_url = "https://developer.forecast.io/" site_html = urllib2.urlopen(site_url).read() site_soup = beautifulsoup(site_html,"html.parser")  api_key = site_soup.find("input",{"id":"api_key"}) 

edit: html i'm looking at:

<div class="row">   <div class="span10" id="api_keys">     <div class="well">       <h2>api key</h2>         <span class="input-append">           <input id="api_key" type="text" value="47580427a2916a5059085b6a65fc3990" 


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -