Created
February 3, 2020 16:35
-
-
Save vlad-ds/5e049c9b8206c3836d26eb6cf6f2b107 to your computer and use it in GitHub Desktop.
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 characters
from pandas import DataFrame | |
def main(): | |
path = 'input/mail.mbox' | |
mails = get_mails(path) | |
unsub_links = add_unsubscribe(mails) | |
df = DataFrame(unsub_links).T | |
df = df.sort_values(by='count', ascending=False) | |
df.to_csv('output.csv') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment