Skip to content

Instantly share code, notes, and snippets.

View checchia's full-sized avatar

Daniel Checchia checchia

View GitHub Profile
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(" ")
import sys, os, tldextract
def extrai_sld(dominio):
sld = tldextract.extract(dominio)
marca = sld.domain
return marca
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:
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
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
#! /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