/mailchimp-deletion

Mailchimp Deletion of old subscribers

Primary LanguagePython

What

Delete all the subscribers that were not active in the past 90 days (backing them up first)

Installation

sudo pip install -r requirements.txt
cp settings.ini.dist settings.ini   

import the Database structure only

mysql -u <username> -p<password> -h <host> <database_name> < structure_dump.db

Config looks like this Mailchimp username, key, and pagination

[MailChimp]
username: jerome
key: blablabal
items_per_page: 100

Config of DB, please Create an instance of mysql on your machine

[DB]
username: root
password: lol
host: 127.0.0.1
port: 3128
dbname: datameeting

Usage

fill the lists on a local db

python go.py -a=get_lists

backup the emails

python go.py -a=backup

launch the deletion

python go.py -a=delete