I want to scrape protected email address with [at] and [dot] in python 3 and beautifulsoup 4 My code is here:
email = soup(text=re.compile(r'[A-Za-z0-9\.\+_-]+@[A-Za-z0-9\._-]+\.[a-zA-Z]*'))
_emailtokens = str(email).replace("\\t", "").replace("\\n", "").split(' ')
if len(_emailtokens):
print([match.group(0) for token in _emailtokens for match in [re.search(r"([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)", str(token.strip()))] if match])
Output of my code (every normal emails detected and scraped and introduced as output):
info@abcd.com
I need to scrape protected emails with below styles:
info [at] abcd.com
info@abcd [dot] com
info [at] abcd [dot] com
And etc.
I want to get all of this styles (change to normal style) like a normal email (e.g. info@abcd.com)