Blog

Lessons learned from creating a Contact Scraper/Marketing app in Python

Demeter, a painting used as the article's feature image

Building a contact-research application with Python and Kivy brought together interface work, network activity, data cleanup, and deployment. The interesting lessons were less about one library and more about keeping those responsibilities understandable as the project grew.

Keep long-running work out of the interface

Network requests and page processing can take unpredictable time. Running them directly in a UI callback makes an application feel frozen. Treat the work as a background task, report progress deliberately, and send results back to the interface through the framework's supported scheduling mechanism.

Make debugging and structure part of the design

Small, testable units make it easier to tell whether a failure comes from a request, a parser, or the UI. Clear class responsibilities and a simple diagram of how those classes relate can save time when a prototype starts acquiring features. Editor completion helps, but explicit names and narrow interfaces are a better guardrail than relying on suggestions alone.

Treat contact data as messy input

Phone numbers arrive with different punctuation, country codes, and formatting. Store a normalized value separately from the original display text, validate assumptions, and avoid silently rewriting data when the region or intent is uncertain. A person should be able to review the result before it is used.

Plan deployment early

A desktop prototype does not automatically become a mobile app. Kivy packaging, native dependencies, permissions, and platform-specific build tools can change the architecture. Test a small packaged build on each target early, keep data collection transparent and authorized, and prefer official APIs or user-provided sources where possible.

The biggest payoff came from separating the application into pieces that could be checked independently: interface, background work, parsing, and storage. That structure made both debugging and platform experiments more manageable.

  • Kivy
  • Python
  • Web scraping
Back to the Blog