I am using BeautifulSoup to get data from a webpage. The webpage provides a date, which I see when I open the page in Firefox. However, when I view page source there is no date, just some javascript that generates the date. I see there are some related questions on here, I see references to ajax and json, I am just an amaeteur programmer though and remain confused here. Here is some of the HTML code which has the javascript code in it with the date I need.
<div class="match-details">
<p class="floatleft">
BARCLAYS PREMIER LEAGUE
<span>
<script type="text/javascript">
(function(){
var d = new Date(1345489200000);
var year = d.getFullYear();
var month = d.getMonth() + 1;
var day = d.getDate();
var minutes = d.getMinutes();
var hours = d.getHours();
if (minutes < 10) { minutes = '0' + minutes; }
var dmy = [day, month, year];
var hm = [hours, minutes];
if (SITE_EDITION == 'us/en') {
var dmy = [month, day, year];
}
var matches_local = dmy.join('/') + " " + hm.join(':');
matches_local += "<span class='live-red'>*</span>";
document.write(matches_local);
})();
</script>
</span>
</p>
</div>