[need help] remove subdomains of url list

kkvsam

Senior Member
Joined
Oct 11, 2009
Messages
938
Reaction score
570
I've scraped huge list of URLs through SB. But there are lots of sub domains like abc.domain.com. I need to remove all sub domains and want to get main domains. Any one know how to do this?
Code:
abc.domain.com to domain.com
Thank you.
 
Last edited:
You can use Sick Scraper (free tool) for this task:

Code:
[B][URL]http://sickmarketing.com/beta/scraper.exe[/URL][/B]
 
I've sick scraper. Then what?
You can use Sick Scraper (free tool) for this task:

Code:
[B][URL]http://sickmarketing.com/beta/scraper.exe[/URL][/B]
 
regular expressions should help

what's easier for me though would be to import the list in access, using the dot (.) as a delimiter - then you will end up with three columns:
sub domain com
sub domain1 com

etc. - just copy the 2nd and the third and you'll end up with

domain com
domain1 com

then just replace the space with dot (.) It takes less than 10 seconds
 
but if the site is abc.domain.com.uk, then what? I need to have domain.com.uk for those domains.
 
No. Dude. I can remove dupe with SB. What I need is remove subdomains from the URL list and get the root domain like below.
Code:
abc.domain.com  --->  domain.com
abc.domain.co.uk ---> domain.co.uk
 
but if the site is abc.domain.com.uk, then what? I need to have domain.com.uk for those domains.

Lol, he gave you the solution and you don't see it?

Just copy 2,3,4 and replace space with dot in notepad (STRG+H)
 
Back
Top