• We've moved. Our community is now at ownd.sh — latest discussions and updates live there.

[Python Script] Extract Confirmation Code from an Email

krospo

Well-known member
krospo Rep
0
0
Rep
1
krospo Vouches
0
0
0
Vouches
0
Posts
135
Likes
151
Bits
3 YEARS
3 YEARS OF SERVICE
Hidden Content

1. Ensure that your Email Service has IMAP protocol activated. Some email services provide it by default like I used onet.eu Email service. For popular ones like gmail It has to be activated manually.

2. Write your Email credentials to the script.

3. Modify for your needs if required.

Ready Script to extract 6 digit code from an Email's Subject. You can modify for your needs.

https://pastebin.com/f0XUw8Q7

Here is IMAP lib Used and its docs:

https://github.com/ikvk/imap_tools

This is a bump
 

blinto533

Active member
Rep
0
0
Rep
0
Vouches
0
0
0
Vouches
0
Posts
93
Likes
1
Bits
3 YEARS
3 YEARS OF SERVICE

Florinacioo

Elite Member
Rep
0
0
0
Rep
0
Vouches
0
0
0
Vouches
0
Posts
529
Likes
7
Bits
4 YEARS
4 YEARS OF SERVICE

Praise6ix

Well-known member
Rep
0
0
Rep
0
Vouches
0
0
0
Vouches
0
Posts
175
Likes
0
Bits
3 YEARS
3 YEARS OF SERVICE

requetes302

Well-known member
Rep
0
0
Rep
6
Vouches
0
0
0
Vouches
0
Posts
121
Likes
1
Bits
3 YEARS
3 YEARS OF SERVICE

179,161

126,023

1,405,739

Top