Free software download from SoftAhead Freeware Shareware Press User's Choice TOP 100 Best Software SoftAhead Forum
AUDIO & MULTIMEDIA
BUSINESS
COMMUNICATIONS
DESKTOP
DEVELOPMENT
EDUCATION
GAMES & ENTERTAINMENT
GRAPHIC APPS.
HOME & HOBBY
NETWORK & INTERNET
SECURITY & PRIVACY
SERVERS
SYSTEM UTILITIES
WEB DEVELOPMENT
OTHERS
SA SOURCE CODE
Download
New and Update Softwares
RSS 2.0 Feed
Nsauditor Network Security Auditor 2.0... Nsauditor Network Security Auditor 2.0... (Shareware)
Scan and monitor network.Over 45 net tools.
SecureIT Encryption Software 4.1.0 SecureIT Encryption Software 4.1.0 (Shareware)
Secure IT File and Folder Encryption Software
User Time Control 4.9.3.2 User Time Control 4.9.3.2 (Shareware)
Specify the time when users can work on PC
eMule EZ Booster 1.7.0 eMule EZ Booster 1.7.0 (Freeware)
eMule-Ez-B develops high download speed.
Flash Gallery Factory Deluxe 5.0.4 Flash Gallery Factory Deluxe 5.0.4 (Shareware)
Create Photo Gallery with Digital Photos.


Acceptance Mark
Adobe.com
IBM.com
Symantec.com
Submit Software SoftAhead FAQs
Home > Software > Link Extractor

Link Extractor

Auto Clicker Link Extractor Google Pagerank Checker
  

Download LinkExtractor-executables.zip - 194.5 KB
Download LinkExtractor-project.zip - 136.7 KB (Open Source)
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();

To extract links from a web page

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();

Other Version Download

DOWNLOAD Link Extractor Open Source
Auto Clicker Link Extractor Google Pagerank Checker Visitor Exchanger
No. Subject Author Date
   |  
Post a message

Subject Name Submit
Comment
Free software download, Including Freeware, Shareware, Utilities at SoftAhead.com, free software & internet utility programs, business software, viewer, MP3 audio player software, video & DVD player software.
terawords.com
Home | About Us | Private Policy | New Releases | Advertisement | Latest Reviews | Mail to Webmaster | Submit Software
Copyright(c) 2007 Softahead.com All Rights Reserved. HTML Sitemap | XML Sitemap | All Downloads