简单的软件包,可停止接收来自unimi的烦人电子邮件。
unimi_unsubscribe的Python项目详细描述
简单的软件包,可停止接收来自unimi的烦人电子邮件。
安装
在您的终端上运行:
pip install unimi_unsubscribe
如何使用
编写一个简单的脚本,比如given example:
fromunimi_unsubscribeimportunsubscribeunsubscribe("name.surname@studenti.unimi.it","my_password")
输出示例
trhis脚本的输出示例如下:
Proceeding to unsubscribe from the following lists: ['agevolazioni_e_convenzioni_teatro_stud@liste.unimi.it', 'aistp-1@liste.unimi.it', ... 'studenti.ultimoanno@liste.unimi.it', 'studentiepostlaurea@liste.unimi.it'] Remember that you can always resubscribe to these. Proceed? [y/n] y All done: you will now receive a mail from the SYMPA service with the results of the unsubscribe commands. Some lists cannot be unsubscribed with this channel, as they are required by the university. You may receive an error from those lists.