It seems Webbrowser control in C# is more useful for scraping contents from websites and also for doing autologin and autoposting of contents.
Offline scraping will save more time. i-e In offline scraping, we crawl the website onetime and download all the webpages onetime. We can scrap the required contents from the downloaded pages at any number of times without worrying about network constraints.
But we have faced many issues in using webbrowser control for offline scraping.
After searching the net, I came to know that many people are facing similar issue.
Please find below the code which will solve the issue.
string partHtmlpage = "Your html page"
webBrowser1.AllowNavigation = true;
if (webBrowser1.Document != null)
{
webBrowser1.Document.OpenNew(true);
}
else
{
webBrowser1.Navigate("about:blank");
}
webBrowser1.Document.Write(partHtmlpage);
More Articles...
Search This Blog
Blog Archive
-
▼
2009
(257)
-
▼
February
(13)
- PHP - Enable cURL in Windows.
- Excel - Removing duplicate values
- Javascript- Accessing DOM before completion of pag...
- C# - Handling symbols in webbrowser control
- Cross browser web development.
- Online Bookmark
- MySql version issue.
- MySQL - Importing Large sql file
- Bookmarklet
- Our vision and Values
- Google Analytics
- Offline Crawling - Resolved the issue with webbrow...
- Issue with GD Library
-
▼
February
(13)

AI Course | Bundle Offer | Unlocking AI | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | SQL ebook | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment