Simple library to cleanup and prettify url patterns and emails
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
assets
beautifier
.gitignore
LICENCE
MANIFEST.in
README.md
_config.yml
setup.py

README.md

Beautifier

Simple library to cleanup and prettify url patterns, domains and so on. Library helps to clean unicodes, special charecters and unnessesary redirection patterns from the urls and gives you clean date.

Documentation

Installation

pip install beautifier

Basic Usages

Email Function

EMAIL cleanup API's

from beautifier import Email
email = Email('me@imsach.in')

>>> email.domain
'imsach.in'

>>> email.username
 'me'

>>> email.is_free_email
 False

Url Function

URL cleanup API's

from beautifier import Url
url = Url('https://in.linkedin.com/in/sachinphilip?authtoken=887nasdadasd6hasdtg21&secret=98jy766yhhuhnjk')

>>> url.cleanup
'https://in.linkedin.com/in/sachinphilip'

>>> url.domain
 'in.linkedin.com'

>>> url.param
 ['authtoken': '887nasdadasd6hasdtg21',
  'secret': '98jy766yhhuhnjk' ]