Click here to Skip to main content
15,918,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sir
i have a page that are 2 textbox (username and password) and one button (login)
i want to go gmail inbox with the help of there controls... by the using page scraping ... ,, can u give me any idea about .. page scraping... for my Help......


Please Reply...
R. Giskard Reventlov 6-Apr-11 9:10am    
What have you already tried? How did that work out? What research have you done before asking here?
Bryian Tan 6-Apr-11 10:44am    
I think there is a GMAIL API out there to interact with the mail box.


The HTML Agility Pack (http://[^]) is a superb library for scraping web pages.

Once the page is loaded with the pack, you can use XPath queries to grab data - e.g.


will get all the 'href' attributes of all link tags


will get the 'div' element that has the class name 'email'


will get all immediate 'td' children of any div tags that have the id 'subject'.

As you can see being able to extract data from a web page this way is very straightforward - many other mechanisms will have you using nested loops or very complicated recursive functions.
Share this answer
Sandeep Mewara 6-Apr-11 14:55pm    
My 5!
Google HttpWebRequest. You can use that class to retrieve the source code of a web page, and then parse it. There are also several articles here on CodeProject that demonstrate the use of that class.
Share this answer

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