Find Jobs
Hire Freelancers

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

$10-30 AUD

Kapalı
İlan edilme: 5 yıldan fazla önce

$10-30 AUD

Teslimde ödenir
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()
Proje No: 18067788

Proje hakkında

4 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 5 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
4 freelancer bu proje için ortalama $18 AUD teklif veriyor
Kullanıcı Avatarı
Hello! I work with Python daily at my fulltime job and I will be able to assist you with your issue here. I can provide code examples as well as direct edits to your source code if needed. I look forward to working with you!
$20 AUD 1 gün içinde
5,0 (1 değerlendirme)
1,0
1,0
Kullanıcı Avatarı
Hi, I am familiar with Python and keen to help you. Looks like this is a small isssue, but require access to your code and see the program flow. I am based in Melbourne, so we can arrange a better time to contact. Thanks Bram
$25 AUD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
lol this is really easy msg me ill fix it no charge.
$10 AUD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0

Müşteri hakkında

   AUSTRALIA bayrağı
canberra, Australia
5,0
1
Ödeme yöntemi onaylandı
Mar 4, 2017 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.