Merging Apify Datasets and Removing Duplicates with Python
A developer shares a Python script for combining several Apify datasets that overlap, such as repeated scraper runs that capture the same products, jobs or pages. The tool, published under an MIT license as a single standard-library file, works only with Apify datasets and not with CSV, Excel or spreadsheet sources. Users choose which fields define a duplicate, and items missing those fields are never treated as duplicates. The script can keep either the first or the most recent copy of each item and can ignore case and extra whitespace when comparing values. A separate option lets daily jobs export only items not seen in earlier runs, tracked through a saved state file.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in