Created
March 22, 2017 14:32
-
-
Save guilhermemauro/2569c1a418a3d6cff0a2cc0f9af79a30 to your computer and use it in GitHub Desktop.
Revisions
-
guilhermemauro created this gist
Mar 22, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ from bs4 import BeautifulSoup as bs import requests, sys, re from termcolor import colored if len(sys.argv) < 2: print colored("Falta o argumento palavra: Tente 'python main.py palavra'", 'red') exit() elif len(sys.argv) > 2: print colored("O programa so toma apenas um argumento, o primeiro argumento sera utilizado.", 'red')