VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



EmailExtractor1

by RegX (15 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

Crawls through urls extracting unique Email addresses as it goes.
This version only follows href tags, and does
limited relative path to full path conversion
i.e it does not properly folow relative links having ../
I will post a new version soon that extracts all
urls and has better relative path support.
Code is heavily commented and Shows how to use:
regular expressions
inet control
dictionary objects
listboxes

Inputs
Just give it a starting URL and press go
Assumes
Must have reference to Regular expresions and Scripting runtime I recomend regular expresions 5.5 which you will find the download link to in the global declarations
Code Returns
A list of email addresses that can then be saved/appended to a text file
Side Effects
although I limit cashed URLS to 5000 this script can cunsume quite a bit of memory. It would be much better to use a DB to Cash URLs and Emails (less memory) and this would also allow cach to exist between program invocations, but for this simple demo I used listboxes.

Rate EmailExtractor1

Download EmailExtractor1

Download EmailExtractor1 (5 KB)

EmailExtractor1 Comments

No comments have been posted about EmailExtractor1. Why not be the first to post a comment about EmailExtractor1.

Post your comment

Subject:
Message:
0/1000 characters