Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

# remove sensitive information like name, email, phone no from text

# remove sensitive information like name, email, phone no from text
import scrubadub

# My cat may be more tech-savvy than most, but he doesn't want other people to know it.
text = "My cat can be contacted on example@example.com, or 1800 555-5555"

# Replaces the phone number and email addresse with anonymous IDs.
scrubadub.clean(text)
'My cat can be contacted on {{EMAIL}}, or {{PHONE}}'
Comment

PREVIOUS NEXT
Code Example
Python :: How to run a method before/after all class function calls with arguments passed? 
Python :: downsample audio 
Python :: fibo_itrativ 
Python :: dictionary display 
Python :: python list and numpy array 
Python :: geopandas gdf or df to file 
Python :: Remove Brackets from List Using the Translate method 
Python :: python replace date time column 
Python :: text to speech free python 
Python :: python forward declaration 
Python :: rasa emotion bot 
Python :: python regex exclude letters 
Python :: get distance between points in 1 array pythoin 
Python :: How to allow discord bot to respond to webhook. Python. Discord.py 
Python :: sqlite basic 
Python :: How to secure an endpoint for selected users with Flask-JWT-Extended 
Python :: Python beginner question - trying to understand return statement 
Python :: imprimir variables en python 
Python :: connect labjack to python 
Python :: ring Delete Item From List 
Python :: negative max in python 
Python :: Python cut down OS path to certain part 
Python :: update a variable in torch 
Python :: dic to dic arrays must all be same length 
Python :: how to auto create a three dimensional array in python 
Python :: payphone lyrics 
Python :: python making player equipment 
Python :: pandas mean and sum 
Python :: code help 
Python :: Print all day-dates between two dates [duplicate] 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =