A Python script for generating and sending DMCA takedown request emails to GitHub from JSON configuration files.
- Python 3.9+
 - Pydantic 2.x+ (for configuration validation)
 
- 
Clone this repository:
git clone https://github.com/tool-buddy/github-dmca-takedown-automator.git cd github-dmca-takedown-automator - 
Install dependencies:
pip install pydantic pip install pydantic[email] 
- 
Update emailing_config.py with your email settings.
 - 
For each DMCA takedown request, create a JSON file containing the same data as the DMCA takedown notice form (https://support.github.com/contact/dmca-takedown). See example_request.json for a template.
 - 
Process one or multiple requests:
 
python dmca_sender.py request1.json [request2.json ...]
The script will:
- Load and validate each config file
 - Show a preview of the email
 - Ask for confirmation before sending
 - Send the email if confirmed
 - Display a summary of successful and failed requests