|
|
|
|
|
|
|
|
|
Home > Latest Press Releases > [Software Release] Link Extractor - Open Source |
[Software Release] Link Extractor - Open Source |
|
|

Download LinkExtractor_executables.zip - 194.5 KB
Download LinkExtractor_project.zip - 136.7 KB
Link Extractor Introduction
Link Extractor is a program that extracts all the links from a web page you specify and lists them in left-bottom-pane. And this program shows the source of the webpage to you in right pane.
Nowadays, Link Extractor is usually used as one of SEO tools in the Internet. I hope this tool shoulde help you when your webpages go to SEO. Link Extractor is a freeware.
Using the code in Link Extractor
To get HTML Document, GetHtmlDocument() is used.
m_pHTMLDocument3 = GetHtmlDocument();
m_pHTMLDocument3 = GetHtmlDocument();
((CMainFrame*)AfxGetMainWnd())->GetLinkListView()->GetListCtrl().DeleteAllItems();
m_pCollection = m_pHTMLDocument3->getElementsByTagName(L"A");
for(long i=0; ilength; i++)
{
m_pElement = m_pCollection->item(i, (long)0);
if(m_pElement != NULL)
{
//second parameter says that you want to get text inside attribute as is
BSTR bstr; CString str;
m_pElement->get_innerText( &bstr );
str = bstr;
((CMainFrame*)AfxGetMainWnd())->GetLinkListView()->AddLink(
(LPCTSTR)bstr_t(m_pElement->getAttribute("href", 2)),
(LPCTSTR)bstr_t(m_pElement->getAttribute("title", 2)),
str.operator LPCTSTR()
);
}
To get the html source from a web page
IHTMLDocument2 *lpHtmlDocument = NULL;
LPDISPATCH lpDispatch = NULL;
lpDispatch = GetHtmlDocument();
if(!lpDispatch)
return false;
lpDispatch->QueryInterface(IID_IHTMLDocument2, (void**)&lpHtmlDocument);
ASSERT(lpHtmlDocument);
lpDispatch->Release();
IHTMLElement *lpBodyElm;
IHTMLElement *lpParentElm;
lpHtmlDocument->get_body(&lpBodyElm);
ASSERT(lpBodyElm);
lpHtmlDocument->Release();
// the parent of Body is HTML
lpBodyElm->get_parentElement(&lpParentElm);
ASSERT(lpParentElm);
BSTR bstr;
CString str;
lpParentElm->get_outerHTML(&bstr);
str = bstr;
((CMainFrame*) AfxGetMainWnd())->GetHttpSourceView()->AddSource( str );
lpParentElm->Release();
lpBodyElm->Release();
Points of Interest
Anybody can extract all website links from a web page.
Source : http://www.softahead.com
Keywords : Link Extractor, SEO tool, Link, Html Source Viewer, Html Source
|
|
|
Latest Press Releases
[View Press Releases List]
|
WILMOTCORP.COM PROVIDING EXECUTIVE SUITES,EXECUTIVE OFFICES,BUSINESS CENTER AND ...
Date : 2008-12-01 22:10:49
WILMOTCORP.COM THE BEST HUB OF EXECUTIVE SUITES, EXECUTIVE OFFICES, BUSINESS CENTER AND MEETING ROOMS.
At WILMOTCORP you can find executive suites are state-of-the-art and stylishly designed. Wilmotcorp.com giving best offers like, fully furnished or unfurnished executive offices to day desks with 24/7 access, now here you can get high-speed p...
|
Digeus Released Registry Cleaner for Windows Vista
Date : 2008-11-22 08:16:06
http://www.digeus.com - Digeus, Inc. has announced the release of Registry Cleaner for Windows Vista, a PC maintenance and recovery tool that eliminates system error messages, slow startup and shutdown speed, programs instability and computer crashes. Digeus Registry Cleaner for Windows Vista represents the cheapest way to speed up any PC without e...
|
Junk Files Removal Tool Released By Digeus
Date : 2008-11-22 08:14:58
Digeus, Inc. has announced the release of Junk Files Remover, Top powerful disk cleaner program that can be safely used to perform disk cleanup for Vista, XP and any other platform. Junk Files Remover will optimize, clean and boost the speed of your Windows. Keep your PC clean of junk files with this disk cleaner utility and enjoy your top speed sy...
|
Save PowerPoint presentation to PDF – PPT to PDF
Date : 2008-11-12 04:44:04
What’s new in this release?
Aspose.Slides for .NET v2.9.0.0 has now developed its own PDF rendering engine which enables you to save your PowerPoint presentations to PDF (PPT to PDF).
More about Aspose.Slides for .NET
Aspose.Slides is a .NET component to create, read, write and modify a PowerPoint document without using Microsoft PowerPoin...
|
New SCJP 5.0 Free Exam Simulator
Date : 2008-11-06 13:41:19
Hi Everyone.
I made a new exam simulator software for SCJP 1.5 exam (SCX 310-055). I named this simulator as "Sun Certified Exam Lab".
I simulated the actual Sun exam software environment in this software. This contains 1 diagnostic exam, 3 practice exams, and 1 final exam. Each mock exam contains 72 questions, including drag-and-drop questio...
|
Aspose.Newsletter: Generate & Recognize barcodes for UTF-8
Date : 2008-11-04 03:51:15
Aspose publishes November 2008 Newsletter for .NET & Java programmers by highlighting the newly supported features by Aspose components and SSRS rendering extensions. This month’s technical article shows you how to utilize Aspose.Words in other programming languages and the technical tip demonstrate about how to generate and recognize barcodes for ...
|
|
|
|
|
|
|
|