In [7]:
from bs4 import BeautifulSoup
import mechanize
import re
import time
In [32]:
url = 'http://www.cpcb.gov.in/CAAQM/frmUserAvgReportCriteria.aspx'
In [33]:
br = mechanize.Browser()
br.set_handle_robots(False)
# br.set_debug_http(True)
br.addheaders = [('user-agent', ' Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3'),
('accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8')]
r1 = br.open(url)
# print r1.read() # body
forms = mechanize.ParseResponse(r1, backwards_compat=False)
form = forms[0]
# print form
time.sleep(1)
form["ddlState"] = ["1",]
r1 = br.open(form.click())
forms = mechanize.ParseResponse(r1, backwards_compat=False)
form = forms[0]
time.sleep(1)
form["ddlCity"] = ["21",]
r1 = br.open(form.click())
forms = mechanize.ParseResponse(r1, backwards_compat=False)
form = forms[0]
time.sleep(1)
form["ddlStation"] = ["96",]
r1 = br.open(form.click())
forms = mechanize.ParseResponse(r1, backwards_compat=False)
form = forms[0]
time.sleep(1)
form["lstBoxChannelLeft"] = ["1715",]
r1 = br.open(form.click())
forms = mechanize.ParseResponse(r1, backwards_compat=False)
form = forms[0]
time.sleep(1)
form["ddlCriteria"] = ["0",]
r1 = br.open(form.click())
forms = mechanize.ParseResponse(r1, backwards_compat=False)
form = forms[0]
time.sleep(1)
form["txtYear"] = "2013"
form["txtYearTo"] = "2017"
r1 = br.open(form.click())
forms = mechanize.ParseResponse(r1, backwards_compat=False)
form = forms[0]
time.sleep(1)
form["btnSubmit"] = "True"
r1 = br.open(form.click())
br.select_form(nr=0)
r1 = br.submit()
In [34]:
br.select_form("form1")
time.sleep(1)
r1 = br.submit(name='btnSubmit')
html = r1.read()
soup = BeautifulSoup(html, 'html.parser')
In [35]:
print soup
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
::CPCB Air Quality Report::
</title><link href="style.css" rel="stylesheet" type="text/css"/></head>
<body bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0">
<form action="frmReportdisplay.aspx" id="form1" method="post" name="form1">
<div>
<input id="__EVENTTARGET" name="__EVENTTARGET" type="hidden" value=""/>
<input id="__EVENTARGUMENT" name="__EVENTARGUMENT" type="hidden" value=""/>
<input id="__VIEWSTATE" name="__VIEWSTATE" type="hidden" value="/wEPDwULLTE3MzI2Njk3ODcPFgQeClN0YXJ0SW5kZXgFATAeCXRhYmxlZGF0YTK6CgABAAAA/////wEAAAAAAAAADAIAAABOU3lzdGVtLkRhdGEsIFZlcnNpb249Mi4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAVU3lzdGVtLkRhdGEuRGF0YVRhYmxlAwAAABlEYXRhVGFibGUuUmVtb3RpbmdWZXJzaW9uCVhtbFNjaGVtYQtYbWxEaWZmR3JhbQMBAQ5TeXN0ZW0uVmVyc2lvbgIAAAAJAwAAAAYEAAAAhAU8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJ1dGYtMTYiPz4NCjx4czpzY2hlbWEgeG1sbnM9IiIgeG1sbnM6eHM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIiB4bWxuczptc2RhdGE9InVybjpzY2hlbWFzLW1pY3Jvc29mdC1jb206eG1sLW1zZGF0YSI+DQogIDx4czplbGVtZW50IG5hbWU9IlRhYmxlMSI+DQogICAgPHhzOmNvbXBsZXhUeXBlPg0KICAgICAgPHhzOnNlcXVlbmNlPg0KICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJTdGF0aW9uTmFtZSIgdHlwZT0ieHM6c3RyaW5nIiBtc2RhdGE6dGFyZ2V0TmFtZXNwYWNlPSIiIG1pbk9jY3Vycz0iMCIgLz4NCiAgICAgIDwveHM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xvcjpSZWQ7Jz5Obzwvc3Bhbj4gaW5zdGFuY2Ugd2hlbiBkYXRhIGhhcyBleGNlZWRlZCBQcmVzY3JpYmVkIFN0YW5kYXJkIG9mICA8c3BhbiBzdHlsZT0nZm9udC1mYW1pbHk6dmVyZGFuYTtmb250LXNpemU6MTFweDtmb250LXdlaWdodDpib2xkO2NvbG9yOlJlZDsnPk5pdHJpYyBPeGlkZShOTyk8L3NwYW4+LjwvdGQ+PC90YWJsZT5kZAIDDw8WAh8DaGRkAgQPDxYCHwNoZGQCBw8PFgIfAmVkZBgCBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAwUPYnRuRXhwb3J0VG9Xb3JkBQlidG5FeHBvcnQFCGJ0bkNsb3NlBQ9ndlJlcG9ydFN0YXRpb24PFCsACmRkZGRkZBUBC1N0YXRpb25OYW1lFCsAARQrAAEFUVRpcnVtYWxhLEluZHVzdHJpYWwgUmVzaWRlbnRpYWwgUnVyYWwgYW5kIE90aGVyIEFyZWEsTk8sTml0cmljIE94aWRlKE5PKSwwLDAsMTcxNQIBFCsAAQVRVGlydW1hbGEsSW5kdXN0cmlhbCBSZXNpZGVudGlhbCBSdXJhbCBhbmQgT3RoZXIgQXJlYSxOTyxOaXRyaWMgT3hpZGUoTk8pLDAsMCwxNzE1ZA=="/>
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<script src="/CAAQM/WebResource.axd?d=NnGdTlWvydjrhPkMUTnqHw2&t=634054804411800208" type="text/javascript"></script>
<script src="/CAAQM/ScriptResource.axd?d=H6NpsF2dFDRs3zZFnsFTOVaJSRMs-hUp9saZoui0S2ZQi07MSNPm4BeJb5wDLrti17kuQkQZF_dSN7c4-59sVmRadYz7nMyo_x5yz1V1seo1&t=ffffffffe7c165ef" type="text/javascript"></script>
<script src="/CAAQM/ScriptResource.axd?d=H6NpsF2dFDRs3zZFnsFTOVaJSRMs-hUp9saZoui0S2ZQi07MSNPm4BeJb5wDLrtiGCKMyoW_6vzxbOTVDrFj2pqv1krlYwHa3Gd3rOt0yow1&t=ffffffffe7c165ef" type="text/javascript"></script>
<div>
<input id="__SCROLLPOSITIONX" name="__SCROLLPOSITIONX" type="hidden" value="0"/>
<input id="__SCROLLPOSITIONY" name="__SCROLLPOSITIONY" type="hidden" value="0"/>
</div>
<div><table align="center" border="0" cellpadding="0" cellspacing="0" width="1003">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img height="120" src="images/cpcbheader.jpg" width="1003"/></td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="grayleft" valign="top" width="21"> </td>
<td><table align="center" border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="94%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="1%"> </td>
<td valign="top" width="58%"><table border="0" cellpadding="0" cellspacing="2" width="100%">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="3" style="text-align: center" width="100%">
<tr>
<td colspan="4">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="height: 15px"> </td></tr>
<tr>
<td colspan="4" style="height: 186px">
<table align="center" width="96%">
<tr>
<td colspan="2" width="100%">
<table align="center" border="0" bordercolor="#dcdcdc" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" class="ReportTopHeading" colspan="2" height="20">CONTINUOUS AMBIENT AIR QUALITY</td>
</tr>
<tr>
<td align="center" colspan="2" height="15"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 59px">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="65%"> </td>
<td align="left" width="35%"> <span class="reportlefttext" id="Label1">Date :</span>
<span class="reportdatetimerighttext" id="lblDate">Friday, March 24, 2017</span></td>
</tr>
<tr>
<td width="65%">
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tUpdatePanel1'], [], ['gvReportStation','btnNext1','btnNext2','btnPrevious1','btnPrevious2'], 90);
//]]>
</script>
</td>
<td align="left" width="35%"><span class="reportlefttext" id="Label3">Time :</span>
<span class="reportdatetimerighttext" id="lblTime">11:10:45 AM</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" colspan="2">
<table border="0" bordercolor="gainsboro" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
</td>
</tr>
<tr>
<td style="height: 19px">
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
<span class="reportlefttext" id="Label7">Parameter :</span>
<span class="MoreDatareportrighttext" id="lblParameter">NO</span></td>
</tr>
<tr>
<td>
<span class="reportlefttext" id="Label9">Average Period :</span>
<span class="MoreDatareportrighttext" id="lblAvgPeriod"> Annual Average</span></td>
</tr>
<tr>
<td>
<span class="reportlefttext" id="Label11">Date :</span>
<span class="reportlefttext" id="Label17">From </span><span class="MoreDatareportrighttext" id="lblDateFrom">2013</span>
<span class="reportlefttext" id="Label14">To </span>
<span class="MoreDatareportrighttext" id="lblDateTo">2017</span></td>
</tr>
<tr>
<td align="center">
<span class="lblMessage" id="lblMessage"></span>
<div id="UpdateProgress1" style="display:none;">
<img id="Image1" src="images/progress.gif" style="border-width:0px;"/>
<br/>
<span class="ProgressMessage">Please wait......</span>
</div>
</td>
</tr>
<tr>
<td>
<div id="UpdatePanel1">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="right">
<a class="linkcss1" disabled="disabled" id="btnPrevious1"><< Previous</a>
<a class="linkcss1" disabled="disabled" id="btnNext1">Next >></a>
</td>
</tr>
<tr>
<td>
<div>
<table border="0" cellpadding="0" cellspacing="0" id="gvReportStation" style="background-color:White;border-width:0px;width:100%;border-collapse:collapse;">
<tr style="color:Black;background-color:#DEDFDE;">
<td valign="top">
<span id="gvReportStation_ctl03_lblChannelData"><table border="1" bordercolor="Gray" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:Gray;font-family:Arial;font-size:13px;color:White;font-weight:bold;vertical-align:top;text-align:left;padding:5px;"><td colspan="7">Andhra Pradesh, Tirupati, Tirumala ( Industrial Residential Rural and Other Area )</td></tr><tr style="background-color:White;font-family:Arial;font-size:11px;color:Black;font-weight:bold;vertical-align:top;text-align:center;padding:5px;"><td width="30%">Parameter</td><td width="6%">Date</td><td width="10%">Concentration</td><td width="5%">Unit</td><td width="12%">Prescribed Standard</td><td width="8%">Exceeding Standard? (Yes/No)</td><td width="15%">Remarks</td></tr><tr style="font-family:verdana;font-size:11px;color:Black;padding:5px; margin: 1 1 1 1;background-color:#f8f8f8;"><td width="30%"> Nitric Oxide(NO)</td><td width="6%"> 2016</td><td align="right" width="10%">21.87</td><td align="right" width="5%"> µg/m³</td><td align="center" width="12%">NA</td><td align="center" width="8%">NA</td><td width="15%"> </td></tr><tr style="font-family:verdana;font-size:11px;color:Black;padding:5px; margin: 1 1 1 1;background-color:#f8f8f8;"><td width="30%"> </td><td width="6%"> 2017</td><td align="right" width="10%">19.67</td><td align="right" width="5%"> µg/m³</td><td align="center" width="12%">NA</td><td align="center" width="8%">NA</td><td width="15%"> </td></tr><tr style="font-family:verdana;font-size:11px;color:Black;padding:5px;margin: 1 1 1 1; background-color:White;"><td colspan="7"><span style="font-family:verdana;font-size:11px;font-weight:bold;color:Black;">The Avearge value of </span><span style="font-family:verdana;font-size:11px;font-weight:bold;color:Red;">Nitric Oxide(NO)</span><spanstyle='font-family:verdana;font-size:11px;font-weight:bold;color:black;'> is 20.77 µg/m³<br/></spanstyle='font-family:verdana;font-size:11px;font-weight:bold;color:black;'></td></tr></table></span>There is <span style="font-family:verdana;font-size:11px;font-weight:bold;color:Red;">No</span> instance when data has exceeded Prescribed Standard of <span style="font-family:verdana;font-size:11px;font-weight:bold;color:Red;">Nitric Oxide(NO)</span>.</td></tr></table></div></td></tr></table></div></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></div></form></body></html>
<span id="lblBlank"></span>
<span id="lblReportComparisionData"></span>
<tr>
<td align="right">
<a class="linkcss1" disabled="disabled" id="btnPrevious2"><< Previous</a>
<a class="linkcss1" disabled="disabled" id="btnNext2">Next >></a>
</td>
</tr>
<input id="btnExportToWord" name="btnExportToWord" src="images/download.png" style="border-width:0px;" type="image"/>
<input id="btnExport" name="btnExport" src="images/download_exel.png" style="border-width:0px;" type="image"/>
<input id="btnClose" name="btnClose" src="images/close.png" style="border-width:0px;" type="image"/>
<tr>
<td colspan="2" style=" height: 13px"> </td>
</tr>
<td width="1%"> </td>
<td class="grayright" valign="top" width="21"> </td>
<tr>
<td bgcolor="#E2E7ED" valign="top"> </td>
<td bgcolor="#E2E7ED">
<table cellpadding="0" cellspacing="0" class="footerstyle" width="100%">
<tr>
<td> </td>
</tr>
<tr><td align="center" style="height: 12px">Copyright @ Central Pollution Control Board. All Rights Reserved.<a class="disclamerlink" href="frmUserDisclamer.aspx" target="_blank">| Disclamer</a></td></tr>
</table>
</td>
<td bgcolor="#E2E7ED" valign="top"> </td>
</tr>
<tr>
<td bgcolor="#E2E7ED" valign="top"> </td>
<td bgcolor="#E2E7ED"> </td>
<td bgcolor="#E2E7ED" valign="top"> </td>
</tr>
<script type="text/javascript">
//<![CDATA[
theForm.oldSubmit = theForm.submit;
theForm.submit = WebForm_SaveScrollPositionSubmit;
theForm.oldOnSubmit = theForm.onsubmit;
theForm.onsubmit = WebForm_SaveScrollPositionOnSubmit;
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(Sys.UI._UpdateProgress, {"associatedUpdatePanelId":"UpdatePanel1","displayAfter":500,"dynamicLayout":true}, null, null, $get("UpdateProgress1"));
});
//]]>
</script>
In [37]:
table = soup.find(id="gvReportStation").find(id="gvReportStation_ctl03_lblChannelData")
print table
<span id="gvReportStation_ctl03_lblChannelData"><table border="1" bordercolor="Gray" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:Gray;font-family:Arial;font-size:13px;color:White;font-weight:bold;vertical-align:top;text-align:left;padding:5px;"><td colspan="7">Andhra Pradesh, Tirupati, Tirumala ( Industrial Residential Rural and Other Area )</td></tr><tr style="background-color:White;font-family:Arial;font-size:11px;color:Black;font-weight:bold;vertical-align:top;text-align:center;padding:5px;"><td width="30%">Parameter</td><td width="6%">Date</td><td width="10%">Concentration</td><td width="5%">Unit</td><td width="12%">Prescribed Standard</td><td width="8%">Exceeding Standard? (Yes/No)</td><td width="15%">Remarks</td></tr><tr style="font-family:verdana;font-size:11px;color:Black;padding:5px; margin: 1 1 1 1;background-color:#f8f8f8;"><td width="30%"> Nitric Oxide(NO)</td><td width="6%"> 2016</td><td align="right" width="10%">21.87</td><td align="right" width="5%"> µg/m³</td><td align="center" width="12%">NA</td><td align="center" width="8%">NA</td><td width="15%"> </td></tr><tr style="font-family:verdana;font-size:11px;color:Black;padding:5px; margin: 1 1 1 1;background-color:#f8f8f8;"><td width="30%"> </td><td width="6%"> 2017</td><td align="right" width="10%">19.67</td><td align="right" width="5%"> µg/m³</td><td align="center" width="12%">NA</td><td align="center" width="8%">NA</td><td width="15%"> </td></tr><tr style="font-family:verdana;font-size:11px;color:Black;padding:5px;margin: 1 1 1 1; background-color:White;"><td colspan="7"><span style="font-family:verdana;font-size:11px;font-weight:bold;color:Black;">The Avearge value of </span><span style="font-family:verdana;font-size:11px;font-weight:bold;color:Red;">Nitric Oxide(NO)</span><spanstyle='font-family:verdana;font-size:11px;font-weight:bold;color:black;'> is 20.77 µg/m³<br/></spanstyle='font-family:verdana;font-size:11px;font-weight:bold;color:black;'></td></tr></table></span>
In [ ]:
Content source: bhanu13/cpcb_air_quality
Similar notebooks: