Find Jobs
Hire Freelancers

python 2.7 gmail API help w/ passing variable to next func

$30-250 AUD

Cerrado
Publicado hace más de 5 años

$30-250 AUD

Pagado a la entrega
I'm using a while True loop with a gmail API code I found online to extract some data if it's found inside of an email. It all works for the most part though i've run into an issue. The gmail section will always look for a new email with this code - which I want! The issue is, I have function that requires a stored variable from the while true loop named 'email' below will be a rough example: print (temp_dict) [login to view URL](temp_dict) a = temp_dict['Snippet'] b = temp_dict['Sender'] c = temp_dict['Subject'] idk = 'test' if c in idk: z = [login to view URL](':') complete_string = z[1] + ':' + z[0] test = z[0] test1 = z[1] x = [login to view URL]("<") y = [login to view URL](">") email = (b[x:y]).strip('<') print email break except: print'No new messages!' def sendinfo(): me = "xxxxxxxxxxxxx@[login to view URL]" my_password = r"xxxxxxxxxxxxx" you = email < ----- This section here needs to be passed down from the while True loop. msg = MIMEMultipart('alternative') msg['Subject'] = "xxxxxxxxxxx" msg['From'] = me msg['To'] = you html = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" part2 = MIMEText(html, 'html') [login to view URL](part2) s = smtplib.SMTP_SSL('[login to view URL]') [login to view URL](me, my_password) [login to view URL](me, you, msg.as_string()) [login to view URL]() sendinfo()
ID del proyecto: 18082084

Información sobre el proyecto

6 propuestas
Proyecto remoto
Activo hace 5 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
6 freelancers están ofertando un promedio de $109 AUD por este trabajo
Avatar del usuario
Sir/Madam, I am an experienced Python developer with familiarity with OOPS concept and core Python. I have worked on projects involving complex data structures. I can write highly optimized code for you. Looking forward to working with you on this project. Yash
$150 AUD en 1 día
5,0 (43 comentarios)
5,2
5,2
Avatar del usuario
Hello! I am a python developer. I looked at your project and it seems interesting. I have all necessary skills required for this project. Ping me to discuss in detail.
$140 AUD en 2 días
4,7 (34 comentarios)
5,4
5,4
Avatar del usuario
Easy!!, gimme this job and I'll complete it in less than a day Relevant Skills and Experience python smtplib
$150 AUD en 1 día
5,0 (1 comentario)
2,8
2,8
Avatar del usuario
If you send me the script, I could edit it to work for what you're trying to do and explain what I added.
$30 AUD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
contact me its really easy I can do it for free!
$30 AUD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de GEORGIA
Batumi, Georgia
0,0
0
Forma de pago verificada
Miembro desde nov 2, 2018

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.