{"id":21578825,"url":"https://github.com/cbertelegni/gencsvdocumentcloudquery","last_synced_at":"2025-03-18T07:40:15.381Z","repository":{"id":72040483,"uuid":"15312468","full_name":"cbertelegni/GenCSVDocumentcloudQuery","owner":"cbertelegni","description":"Generate a CSV file from a Documentcloud query","archived":false,"fork":false,"pushed_at":"2017-04-12T15:39:16.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T14:18:20.149Z","etag":null,"topics":["documentcloud","documentcloud-api","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbertelegni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2013-12-19T13:34:39.000Z","updated_at":"2017-04-12T15:27:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"6006e5a0-2eb8-47d7-a0c9-4cac0e1b01ba","html_url":"https://github.com/cbertelegni/GenCSVDocumentcloudQuery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbertelegni%2FGenCSVDocumentcloudQuery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbertelegni%2FGenCSVDocumentcloudQuery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbertelegni%2FGenCSVDocumentcloudQuery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbertelegni%2FGenCSVDocumentcloudQuery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbertelegni","download_url":"https://codeload.github.com/cbertelegni/GenCSVDocumentcloudQuery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244180271,"owners_count":20411531,"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":["documentcloud","documentcloud-api","php"],"created_at":"2024-11-24T13:11:40.554Z","updated_at":"2025-03-18T07:40:15.338Z","avatar_url":"https://github.com/cbertelegni.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"GenCSVDocumentcloudQuery\n========================\n\nGenerate a CSV file from a Documentcloud query.\n\n\n## Usage\n\n```\n$ git clone git@github.com:cbertelegni/GenCSVDocumentcloudQuery.git\n```\n\n```\n$ cd ./GenCSVDocumentcloudQuery/php/\n```\n\n* Open main_sample.php\n* Edit $query, for example, get all documents from a project:\n\n```php\n$query = \"projectid:7607-poder-legislativo\"\n$dc = new GenCSVDocumentcloud($query);\n$dc-\u003emain();\n```\n\n* Run code\n\n```\n$ cd php\n$ php main_sample.php\n```\n\n* Output\n\ndocument_title|document_url|document_id|Description|Pages\n---|---|---|---|---\n\"230170233 3462\"|https://www.documentcloud.org/documents/2316031-230170233-3462.html|2316031-230170233-3462||1\n\"230170233 3461\"|https://www.documentcloud.org/documents/2316030-230170233-3461.html|2316030-230170233-3461||1\n\"230170233 3460\"|https://www.documentcloud.org/documents/2316028-230170233-3460.html|2316028-230170233-3460||1\n\"230170233 3459\"|https://www.documentcloud.org/documents/2316026-230170233-3459.html|2316026-230170233-3459||1\n\"230170233 3458\"|https://www.documentcloud.org/documents/2316025-230170233-3458.html|2316025-230170233-3458||1\n\"230170233 3457\"|https://www.documentcloud.org/documents/2316024-230170233-3457.html|2316024-230170233-3457||1\n\"230170233 3456\"|https://www.documentcloud.org/documents/2316022-230170233-3456.html|2316022-230170233-3456||1\n\"230170233 3455\"|https://www.documentcloud.org/documents/2316021-230170233-3455.html|2316021-230170233-3455||1\n\"230170233 3454\"|https://www.documentcloud.org/documents/2316020-230170233-3454.html|2316020-230170233-3454||1\n\"230170233 3453\"|https://www.documentcloud.org/documents/2316018-230170233-3453.html|2316018-230170233-3453||1\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbertelegni%2Fgencsvdocumentcloudquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbertelegni%2Fgencsvdocumentcloudquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbertelegni%2Fgencsvdocumentcloudquery/lists"}