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
Video and Music to iPhone Converter 2.... Video and Music to iPhone Converter 2.... (Shareware)
Convert video and music to iphone
Sothink Photograph Gallery Manager 1.0 Sothink Photograph Gallery Manager 1.0 (Shareware)
An Ideal and easy photo album maker.
Search Engine Position Orb 2.0.2 Search Engine Position Orb 2.0.2 (Shareware)
Search Engine Position Checker - Easy to use.
Plato DVD to iPhone Converter 7.87 Plato DVD to iPhone Converter 7.87 (Shareware)
Convert any dvd to iphone mp4 video files.
Easy RSS Mixer 2 Easy RSS Mixer 2 (Shareware)
Combine several RSS feeds into one


Acceptance Mark
Adobe.com
IBM.com
Symantec.com
AVS TV BOX 1.4
Submit Software SoftAhead FAQs
Home > Software > Link Extractor

Link Extractor

Auto Clicker Link Extractor Google Pagerank Checker Visitor Exchanger
  

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.
Home | About Us | Private Policy | New Releases | Advertisement | Latest Reviews | Mail to Webmaster | Submit Software | Pay-Per-Install
Links to Useful Companies & Products - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Copyright(c) 2007 Softahead.com All Rights Reserved. HTML Sitemap | XML Sitemap | Resources | All Downloads