Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have already discussed this but i got a clarity on the concept so asking again.

1. There is a website in remote machine.I need to open in internet explorer.
2. I do have a data in that where i need to login to that site and click on the particular tab and select the particular index in the dropdown.
3. Then i wiil get the required information where.

Now my task is, i need to create a windows application where i have to login to machine remotely and fetch the data.

Can anyone help me on this whether we can do this through windows application? Thanks in advance.

What I have tried:

I tried with web browser control but using that gives no time consuming instead of opening in internet explorer, it will open in web browser.
We do not have backend access.
Posted
Updated 20-Mar-16 21:25pm
Comments
Sinisa Hajnal 21-Mar-16 3:24am    
I believe the original question got advice to contact the owner / admin of the site and request access?

Anyhow, there are .NET classes such as HttpClient that can be used to access the page(s) you require. Play around a bit and see if that is any faster then browser access.
Member 8010354 22-Mar-16 8:14am    
I tried logging into website so i felt like it works with javascript and below is my code:

<html>
<title>Ikariam Autologin</title>
</head>
<body>
<form id="loginForm" name="loginForm" method="post" action="http:www.gmail.com">
<select name="uni_url" id="logServer" class="validate[required]">
<option class="" value="ID@gmail.com" fbUrl="" cookieName="" >
Test_en
</option>
</select>
<input id="loginName" name="name" type="text" value="PlayersName" class="" />
<input id="loginPassword" name="password" type="password" value="Site_Password" class="" />
<input type="hidden" id="loginKid" name="kid" value=""/>
</form>


<script>document.loginForm.submit();</script>

I'm not getting any error but i'm getting a combobox, texbox1 (with text inside "PlayersName"), textbox2 (dotsssss).

1 solution

this article describes a good approach to web-scraping Webscraping with C#[^]

there are plenty of article on the web about using a web browser control for scraping, but you dont supply enough information to say why it didnt work for you ... sorry, you supply 'some information', but I dont know what you really mean by
Quote:
I tried with web browser control but using that gives no time consuming instead of opening in internet explorer, it will open in web browser.
 
Share this answer
 
Comments
Member 8010354 22-Mar-16 6:38am    
I tried logging into website so i felt like it works with javascript and below is my code:

<html>
<title>Ikariam Autologin</title>
</head>
<body>
<form id="loginForm" name="loginForm" method="post" action="http:www.gmail.com">
<select name="uni_url" id="logServer" class="validate[required]">
<option class="" value="ID@gmail.com" fbUrl="" cookieName="" >
Test_en
</option>
</select>
<input id="loginName" name="name" type="text" value="PlayersName" class="" />
<input id="loginPassword" name="password" type="password" value="Site_Password" class="" />
<input type="hidden" id="loginKid" name="kid" value=""/>
</form>


<script>document.loginForm.submit();</script>

I'm not getting any error but i'm getting a combobox, texbox1 (with text inside "PlayersName"), textbox2 (dotsssss).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900