{"id":17458148,"url":"https://github.com/pocesar/actor-diff-datasets","last_synced_at":"2025-04-02T21:29:54.144Z","repository":{"id":138843088,"uuid":"307259444","full_name":"pocesar/actor-diff-datasets","owner":"pocesar","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-22T05:39:15.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T06:28:34.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pocesar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-26T04:17:37.000Z","updated_at":"2023-03-04T05:53:58.000Z","dependencies_parsed_at":"2023-03-17T23:16:03.321Z","dependency_job_id":null,"html_url":"https://github.com/pocesar/actor-diff-datasets","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Factor-diff-datasets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Factor-diff-datasets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Factor-diff-datasets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Factor-diff-datasets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocesar","download_url":"https://codeload.github.com/pocesar/actor-diff-datasets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246895502,"owners_count":20851281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-18T03:55:29.667Z","updated_at":"2025-04-02T21:29:54.107Z","avatar_url":"https://github.com/pocesar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diff datasets\n\nTake one dataset on Apify platform, compare to another, and output the missing ones.\nThis can also be used to output only changed items, using a compound key.\n\nSupports using whole nested objects as value, they are `JSON.stringify`'d before being turned\ninto a small non-cryptographic space efficient hash\n\n## Example\n\n```js\nawait Apify.call('pocesar/diff-datasets', {\n    baseDatasetId: 'LdNAlaOY1aKGhwAah', // place the datasets here. The order of \"base\" and \"other\" matters\n    otherDatasetId: 'Bzu1pgOjenN43VhPY', // existing items in \"base\" are not output from \"other\"\n    uniqueFields: [\n        // simple primitive field value, like string, number, boolean\n        \"pageUrl\",\n\n        // you can use lodash.get notation to get nested items,\n        // in this case `sub.fields.0` works like `sub.fields[0]` and the object looks like\n        // {\n        //    pageUrl: \"https//pageurl\",\n        //    sub: {\n        //      fields: [\n        //        {...},\n        //        {...}\n        //      ]\n        //    }\n        //  }\n        \"sub.fields.0\",\n\n        // you can also use .length to count arrays or string characters, as in\n        \"sub.fields.length\",\n        \"pageUrl.length\"\n    ],\n});\n```\n\n## Limitations\n\n* Every value is kept in memory while reading from the `base` dataset, more items more memory needed.\n* The key value store might choke when trying to save the in-memory `Set` with too many items\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Factor-diff-datasets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocesar%2Factor-diff-datasets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Factor-diff-datasets/lists"}