Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Checchia checchia

View GitHub Profile
View avail_client.py
#! /usr/local/bin/python
# Copyright (C) 2017 Registro.br. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 1. Redistribution of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
View tamanho.py
import sys, os, tldextract, enchant
d = enchant.Dict("pt_BR")
e = enchant.Dict("en_US")
def extrai_sld(dominio):
sld = tldextract.extract(dominio)
marca = sld.domain
return marca
View isValid.py
import sys, os, tldextract, enchant
d = enchant.Dict("pt_BR")
e = enchant.Dict("en_US")
def extrai_sld(dominio):
sld = tldextract.extract(dominio)
marca = sld.domain
return marca
View isDecimal.py
import sys, os, tldextract
def extrai_sld(dominio):
sld = tldextract.extract(dominio)
marca = sld.domain
return marca
def check_decimal(marca):
if marca.isdecimal() is False:
if not "-" in marca:
View tldextract.py
import sys, os, tldextract
def extrai_sld(dominio):
sld = tldextract.extract(dominio)
marca = sld.domain
return marca
View check_inpi.py
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from sty import fg, bg, ef, rs
def valida_inpi(nome_marca):
print(" ")