EVOSIGN - Assinatura aleatória no Evolution
Publicado por Roberson Carlos (última atualização em 14/12/2009)
[ Hits: 4.954 ]
Homepage: http://carlrobers.wordpress.com
Assinatura personalizada para seu Evolution como proposto neste link: http://migre.me/dLjy
Captura informações de um RSS e coloca como assinatura no EVOLUTION.
#!/usr/bin/python
#-*- coding: UTF-8 -*-
# +----------------------------------------------------------------------+
# | EVOSIGN Assinatura Aleatoria no Evolution.                           |
# | Captura informacoes de um RSS e coloca como assinatura no EVOLUTION  |
# +----------------------------------------------------------------------+
# | Copyright (C) 2009  Roberson Carlos A.K.A robersonfox                |
# | http://genovaengine.com/~carlrobers/ http://carlrobers.wordpress.com/|
# |                                                                      |
# |  This program is free software: you can redistribute it and/or modify|
# |  it under the terms of the GNU General Public License as published by|
# |  the Free Software Foundation, either version 3 of the License, or   |
# |  (at your option) any later version.                                 |
# |                                                                      |
# |  This program is distributed in the hope that it will be useful,     |
# |  but WITHOUT ANY WARRANTY; without even the implied warranty of      |
# |  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the       |
# |  GNU General Public License for more details.                        |
# |                                                                      |
# |  You should have received a copy of the GNU General Public License   |
# |  along with this program.  If not, see <http://www.gnu.org/licenses/>|
# |                                                                      |
# +----------------------------------------------------------------------+
# +----------------------------------------------------------------------+
# | Originado do Projeto assinatura_evolution que teve a colaboracao de  |
# | Robert CG robert.n.roll at gmail.com                                 |
# | Agradecimentos a Robert CG pela colaboracao e apresentacao           |
# | do feed parser                                                       |        
# |                                                                      |
# | Acesse o site do Projeto: http://wp.me/pkpq2-eh                      |
# +----------------------------------------------------------------------+
#
#################### INÍCIO DA CONFIGURAÇÃO ##############################
FEEDURL = "http://carlrobers.wordpress.com/tag/ubuntu/feed" # ACEITA WORDPRESS E BLOG
HTML = bool(True)
TD = bool(False) # TÍTULO OU DESCRIÇÃO, TRUE PARA TÍTULO, FALSE PARA DESCRIÇÃO
#
# ASSINATURA
NOME = "SEU NOME"
EMPRESA = "EMPRESA OU FACULDADE"
SITE = "LINK PARA UM SITE" # SEM HTTP://
ENDERECO  = "SEU ENDERECO"
TEL = "SEU TELEFONE"
#
###################### FIM DA CONFIGURAÇÃO ###############################
import urllib
import feedparser
from random import *
from htmlentitydefs import codepoint2name as cp2nm, entitydefs as nm2cp
import re
import os.path
def htmlescape(texto):
    return "".join([cp2nm.has_key(ord(x)) and
                   "&%s;"%cp2nm[ord(x)] or x for x in texto])
#use este caso você baixe o parser
#url = "feedparser.py"
url = "http://feedparser.org/feedparser.py"
arquivo = urllib.urlopen(url)
#open("feedparser.py","w").write(arquivo.read())
ge = feedparser.parse(FEEDURL) 
rnd = len(ge["entries"])
#captura a entrada aleatoriamente
i = randint(0,rnd)
i -= 1
link = ge['entries'][i].link 
titulo = ge['entries'][i]['description'][0:250]
if TD == True: titulo = ge["entries"][i]['title'][0:250]
else: titulo = htmlescape(titulo) + "[...]"
print "<strong>" + htmlescape(NOME) + "</strong><br>"
print htmlescape(EMPRESA) + "<br>"
print "<a href=\"http://"+ SITE +"\">"+ SITE +"</a><br>"
print htmlescape(ENDERECO) + "<br>"
print TEL + "<br>"
if HTML == False: print "---------------------------------------------------------------------------------------------<br>"
else: print "<hr>"
print titulo + " <a href=\""
print link + "\">Confira mais aqui</a>."
Enviando emails com autenticação smtp python cgi
Enviando mensagens para celulares TIM
IA Turbina o Desktop Linux enquanto distros renovam forças
Como extrair chaves TOTP 2FA a partir de QRCODE (Google Authenticator)
Linux em 2025: Segurança prática para o usuário
Desktop Linux em alta: novos apps, distros e privacidade marcam o sábado
IA chega ao desktop e impulsiona produtividade no mundo Linux
Atualizando o Fedora 42 para 43
Como saber se o seu e-mail já teve a senha vazada?
Como descobrir se a sua senha já foi vazada na internet?
Secure boot, artigo interessante, nada técnico. (4)
E aí? O Warsaw já está funcionando no Debian 13? [RESOLVIDO] (14)
copiar library para diretorio /usr/share/..... su com Falha na a... (1)









