Skip to content
besata
← All projects / 30
09 / Case study

Contact export

Contact cards from an Android app to XLSX and CSV

Contact export

A tool that opens available cards in an Android app, saves their data and exports Excel or CSV files. A stopped run resumes from its saved position.

Work verified against its source.
01 / The task

Contacts are available inside mobile-app cards without a built-in export. Copying them by hand takes time, and a failed run makes completed records difficult to track.

02 / The solution

The Python tool reads the interface through ADB, finds and checks a card, saves its data and records progress. Spreadsheet export runs separately so a file error does not stop collection.

  • Screen-state checks
  • Record identity checks
  • Pause and resume
  • XLSX / CSV export
03

Open-card validation

After scrolling, the script reads the screen again and finds the record. The open card is checked against the expected identity to avoid collecting a neighbouring entry.

04

Record storage and resume

Every accepted result is committed to SQLite. Restarted runs skip saved keys, while problematic cards are not disguised as successful results.

05

Spreadsheet export

The spreadsheet is updated separately. If Excel locks the XLSX, collection state remains in storage. Seen-but-unsaved records help reveal incomplete coverage.

Context and limits +

All demonstration records are synthetic. Complete processing of the original dataset and compatibility with arbitrary apps are not claimed.

Built with

PythonADBSQLiteXLSX
Let’s discuss your idea ↗