2
I’m doing a college job and with that trying to read the HTML of a Bradesco page(Link I want HTML here)
The problem is that I can’t get the HTML inside the frames and I don’t know how to get it.
Currently what I’m trying to do to get HTML is:
using System.IO;
using System.Net;
namespace ConsoleApplication1325423423423
{
public class Program
{
private static void Main(string[] args)
{
string url = "https://wwwss.shopinvest.com.br/infofundos/fundos/TabelaRentabilidade.do?cdSgmtoProdt=1";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = WebRequestMethods.Http.Get;
request.Accept = "application/json";
WebResponse response = request.GetResponse();
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
}
}
}
And the return on the server response is:
Basically, what I need is a way to get HTML inside the frame tag with the name frmMeio.
<frame name="frmMeio" src="ConteudoTabelaRentabilidade.do?cdSgmtoProdt=1">
I don’t know if it helps, but you tried to change the variable
url
to get only the profitability table data? Something like:string url = "https://wwwss.shopinvest.com.br/infofundos/fundos/ConteudoTabelaRentabilidade.do?cdSgmtoProdt=1";
The result you will get is this one.– Gomiero
partner, put this as a question so I can give you credit!
– Andrey Hartung
I had tried to put the url + "Contentability.do? cdSgmtoProdt=1", but I hadn’t tried that! Thanks!
– Andrey Hartung