From AppsFlyer CSV files or CRM data, extract all records matching a specific channel with flexible filtering.
| Condition | Description | Example |
|---|---|---|
| ----------- | ------------- | --------- |
| Channel match | Exact or fuzzy | Channel == 'channel_a_mob' |
| Media Source | By Media Source ID | Media Source == 'xxx_int' |
| Date range | Event Time in range | 2026-02-01 to 2026-02-28 |
| Event type | By event name | Event Name == 'af_purchase' |
| Primary only | First attribution only | Is Primary Attribution == true |
1. Read file (auto-detect encoding: utf-8-sig/gbk/latin-1)
2. Apply channel matching (exact -> fuzzy fallback)
3. Apply additional filters (AND logic)
4. Export Excel + summary report
5. Statistics: total records, unique users, event distribution
python3 scripts/extract_channel.py \
--input data/appsflyer_export.csv \
--channel channel_a_mob \
--start-date 2026-02-01 \
--end-date 2026-02-28 \
--output output/channel_data.xlsx
The following bundled scripts support this skill:
| Script | Purpose |
|---|---|
| -------- | --------- |
extract_channel.py | Executable script |
pandas >= 1.5.0
openpyxl >= 3.1.0
共 1 个版本