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
Total CAD Converter 1.01 Total CAD Converter 1.01 (Shareware)
Safely convert your CAD files to images.
AlphaXP 1.1.2 AlphaXP 1.1.2 (Shareware)
Advanced Transparency Effects WinEnhancement!
Wondershare DVD to MP4 Converter for M... Wondershare DVD to MP4 Converter for M... (Shareware)
Convert DVD to MP4 format video on Mac.
PPT To Video Scout 1.3 Personal Licens... PPT To Video Scout 1.3 Personal Licens... (Shareware)
Converts presentations to AVI, MPEG, WMV
Teroid Data Grid View Print Control 1.... Teroid Data Grid View Print Control 1.... (Commercial)
.NET component for printing a DataGridView


Acceptance Mark
Adobe.com
IBM.com
Symantec.com
Submit Software SoftAhead FAQs
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 ...
    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
    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