![]() ![]() I hope you find this useful and if you have suggestions you can email me or add some comments below □Īnyway enough chit-chat, here’s the code*! When testing this script I was checking 25 email address which was taking about 9 minutes! This was due to the length of time it was taking for errors to timeout, I used this module to write in a timeout limit of 5 seconds, this cut the time down to about a minute and four seconds so it was well worth my sunday evening figuring it out! This module it needed to do the actual validation checks. It works with and without the http protocol as the URLs go through a cleaning process, so for example, the following ‘http(s)://.uk’, ‘http(s)://and ‘http(s)://will all work! Modules needed This will be timeout errors for whatever reason. The more domains and names you load into it, the longer it will take to run but just set it going and get on with something else.Īny issues and the program just keeps going and marks it as an error in the csv file. This is using python 2.7 – If you’ve not used Python before you can just install it, it’s as easy as installing any software. ![]() The code speaks to two files common.txt (this contains your type names) and urls.txt (this contains your URLs), there is a third file output.csv, this will be automatically created so don’t worry about it too much it will be created in the directory where you have the program running (this should be the location of the other two files also.) You also might run into problems if you do this on a large scale as Gmail, for example, has a 500 message send limit per day (1 message to 500 recipients counts as 500 emails). Now I know what you’re thinking, why not just stick the variations in an email and send them all through BCC?, well I can think of a few reasons it’s potentially more time consuming to start with and less organised, also if one person receives the emails for multiple accounts, you may come across as a spammer and simply have your emails deleted. Once you have the list of valid emails, you’ll want to make a judgement call on which email is best, you can also use a tracking script to see if your email has been opened, if not try another email address. The validation works by checking if the host has a SMPT Server and therefore actually exists. Also this obviously checks against multiple URLs (line by line in the text file), I just added the one to quickly show you as an example. These names can be whatever you want, I have just provided a few for you to start with but if you really wanted you could check it against a names database or registrar names. Here it is in action…(play it in full screen) ![]() To solve this problem and try to speed up the process I wrote a Python script that basically tests a list of URLs against common email names such as etc. Recently I was doing a large link clean-up removing all the poor quality links that have been built to a new client’s site over the years and I was left with around 100 domains that had no visible contact details or contact forms, now I could just disavow the links and hopefully that will be enough but there’s no fun in that and I prefer to remove links than just disavow to ensure they don’t get caught in an algorithm update at some point in the future – The problem is, this is now a big task. There are times though when you can’t find contact details, even legitimate sites don’t always display a clear way to contact them so there are a number of ways you can try and get the details, this might be checking Whois data, checking to see if they have social accounts, I’ve had some good success in the past using services such as to see if they have other properties with shared analytics that might be displaying the contact details or using an email validation service and having a guess at common email address. Whether it’s for outreach purposes or link removals, you won’t get far without searching for email addresses, this of course can be time consuming but well worth it and a manual approach is always recommended, this way you’re going to be able to contact the right person first time and have a more tailored approach when you’re doing so – but of course there are ways to speed this process up. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |