473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Web Scrapping using Window Form(Login required)

1
How could I display in a window form the data from a website that require authentication tokens?

I have the token(called IDENTITY_KEY in Postman) and authorized to access the data. There is also username and password.

I could input and retrieve data using Postman so i think I have all the data needed to access it.

How do I give those data to the website using c# window form in order for the website to allow access?

How can I display those results in the window form?

Most of the webscrapping tutorial does not involve window form so I am curious on the possibility.

I am using Visual Studio.
Nov 11 '19 #1
1 1977
SioSio
272 256MB
Use the webBrowser control to access a web site.
The following is an example of entering text from a program into a site.
Sites that enter user IDs and passwords should be able to handle the same.
Expand|Select|Wrap|Line Numbers
  1.         this.webBrowser1.Navigate("https://www.yahoo.com/");
  2.         while (!(WebBrowser1.ReadyState == WebBrowserReadyState.Complete)) {
  3.             System.Windows.Forms.Application.DoEvents();
  4.         }
  5.         WebBrowser1.Document.All.GetElementsByName("p")(0).InnerText = "Input Your Text";
  6.  
Dec 25 '19 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Bernd Liebermann | last post by:
Hi, I'm trying to change the content of an existing window from a second window using window.open(). This works fine in Netscape 7, but IE 6.0 returns an error, saying there's an invalid...
2
by: Bad_Kid | last post by:
Is it possible to print a page that has no "title" and "page number" on the top and no "link adress" and "date" on the bottom (to print just a page just as it is...)? (how, thanks!)
10
by: Shang Wenbin | last post by:
Hi, When I want to close the current window using window.close() in IE6.0, there will be a confirm box that: The web page you are viewing is trying to close the window. Do you want to close this...
8
by: Ben | last post by:
Thanks in advance for any help. I am attempting to pass a large number of ID's using window.open in javascript. The number of the ID's exceeds the querystring length. Therefore, I would like to...
3
by: dibakar | last post by:
Hello I want to open a window using Window.showModalDialog once i click inside of a TextBox.And that window need to come just under the TextBox,so that it seems to a same control. So,what...
5
by: kalyangvd | last post by:
Hi Guys, I am trying to get the Field Id from the Parent Window in the pop up window using window.opener ex: var var1 = window.opener.document.getElementById("text1").value; ...
5
by: itsnavigator | last post by:
First of all, im not a pro on js, im trying to do something by using it. I really wonder, is that possible to warn user without using window.focus ? I just dont know the rigth word, i try to...
0
by: Tony Johansson | last post by:
Hello! If you intend to use a Oracle database it it then possible to access the oracle database using window authorization which mean that you don't have to use an account or password on the...
2
by: neha shah | last post by:
i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.