mardi 13 mai 2014

Parse HTML to retrieve a Javascript variable


Vote count:

0




I am scraping some data form website.


HTML is like this:



<!-- header section -->

<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">


<link rel="stylesheet" type="text/css" href="/ftr/css/new/pjm-tab.css" />
<link rel="stylesheet" type="text/css" href="/ftr/css/new/pjm-table.css" />
<link rel="stylesheet" type="text/css" href="/ftr/css/new/pjm-emkt.css" />
<link rel="stylesheet" type="text/css" href="/ftr/css/new/buildinfo.css" />

<form name="MarketResultsByParticipantForm" method="post" action="/ftr/auctionresults/marketResultsByParticipant.do?method=view">
<input type="hidden" name="currentPageNumber" value="1">
<input type="hidden" name="sortingColumn" value="-1">
<input type="hidden" name="sortingOffset" value="0">
<input type="hidden" name="sortingOrder" value="noorder">

<table class="inputsection" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="70%">


<script type="text/javascript">
var marketInfos = new Array();

marketInfos[0] =
createMarket('03/04 Annual Auction','1','Cleared');


Need to retrieve array marketInfos which has around 800 entries.


Is there a simple way to parse HTML to retrieve Javascript array variable to C# array ?



asked 59 secs ago






Aucun commentaire:

Enregistrer un commentaire