This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, os, tldextract | |
def extrai_sld(dominio): | |
sld = tldextract.extract(dominio) | |
marca = sld.domain | |
return marca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(" ") |