|
|
|
|
|
|
|
|
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]
|
Convert PDF and Word document formats in Microsoft SharePoint
Date : 2009-12-08 05:07:03
What’s new in this release?
Aspose.Words for SharePoint version 1.0.0 is now available. It allows you to convert documents within the Microsoft SharePoint applications and supports multiple document formats. Microsoft Word is not required on the server. The following document formats and conversions are supported:
- PDF - Adobe Portable Docum...
|
Aimersoft launches huge promotion for Holiday Shoppers
Date : 2009-12-03 16:53:58
Aimersoft Studio has picked out more than 15 useful applications that would make great gifts for your holiday (http://www.aimersoft.com/special-offers.html). Low price and good performance of these applications cater to all people’s multimedia needs, while they also make digital lives much easier and more enjoyable.
Biweekly Giveaway
Get Aime...
|
Wondershare release the brand-new iPhone Photo Copy Software
Date : 2009-11-26 17:24:20
Wondershare Software, a leading developer of digital media and multi-media software provider, has released their latest iPhone Photo Copy for iPhone/iPod users on 24th Nov. 2009.
It is true that the iTunes works great to put your photo from PC to your iPhone & iPod, but when it comes to the opposite direction - to pull photo off your iPod, it s...
|
DigitalOfficePro Launches PowerQuizPoint Quiz Creator
Date : 2009-11-13 18:34:35
DigitalOfficePro, the pioneer presentation converter provider, announces the release of another milestone product PowerQuizPoint (PowerPoint Quiz Creator). The user friendly interactive techniques, helps one to create Macromedia Flash Quizzes from PowerPoint easily for educational and business activities.
PowerQuizPoint easily create Macromedia ...
|
Generate PowerPoint 2007 PPSX reports in Microsoft SQL Server
Date : 2009-11-11 15:42:31
What’s new in this release?
Aspose.Slides for Reporting Services version 3.3.0 announces a new export format. Now you can easily generate reports in Microsoft PowerPoint 2007 PPSX format. Aspose.Slides for Reporting Services already supports exporting reports in PPT, PPS and PPTX formats as well.
More about Aspose.Slides for Reporting Service...
|
DigitalOfficePro Launches PowerQuizPoint Quiz Creator
Date : 2009-11-07 14:59:09
DigitalOfficePro, the pioneer presentation converter provider, announces the release of another milestone product PowerQuizPoint (PowerPoint Quiz Creator). The user friendly interactive techniques, helps one to create Macromedia Flash Quizzes from PowerPoint easily for educational and business activities.
PowerQuizPoint easily create Macromedia ...
|
|
|
|
|
|
|
|