{"id":17676617,"url":"https://github.com/yoannchb-pro/drive-album","last_synced_at":"2025-03-30T17:26:38.091Z","repository":{"id":57216332,"uuid":"462501044","full_name":"yoannchb-pro/drive-album","owner":"yoannchb-pro","description":"Tranform your google drive into an album api for your website","archived":false,"fork":false,"pushed_at":"2022-02-23T16:18:33.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-12T04:24:41.940Z","etag":null,"topics":["album","api","drive","free","google","google-drive","image","scraper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yoannchb-pro.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}},"created_at":"2022-02-22T22:49:18.000Z","updated_at":"2022-02-22T23:09:43.000Z","dependencies_parsed_at":"2022-08-26T12:50:12.830Z","dependency_job_id":null,"html_url":"https://github.com/yoannchb-pro/drive-album","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/yoannchb-pro%2Fdrive-album","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannchb-pro%2Fdrive-album/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannchb-pro%2Fdrive-album/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannchb-pro%2Fdrive-album/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoannchb-pro","download_url":"https://codeload.github.com/yoannchb-pro/drive-album/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246353224,"owners_count":20763623,"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":["album","api","drive","free","google","google-drive","image","scraper"],"created_at":"2024-10-24T07:26:13.291Z","updated_at":"2025-03-30T17:26:38.072Z","avatar_url":"https://github.com/yoannchb-pro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drive-album v1.0.1\n\nTransform a google drive folder into an api to stock your images and albums\n\n## Update\n\n- Fixed image url\n\n## Installation ?\n\n```\nnpm i drive-album\n```\n\n## How to use ?\n\n- Dont forget to set the folder in public mode\n\n\u003cimg src=\"assets/public.png\" alt=\"Example public\"\u003e\u003c/img\u003e\n\n```js\nconst GetGoogleDrive = require('drive-album');\n\nconst drive = await GetGoogleDrive(\"https://drive.google.com/drive/folders/1UJ4PiRfyhPelXacznccRoGBPXLDEDvCb?usp=sharing\");\nconst drive = await GetGoogleDrive(\"1UJ4PiRfyhPelXacznccRoGBPXLDEDvCb\");\n\n//if you want to explore all the subtree folders\nawait GetGoogleDrive(..., true);\n```\n\n## Result\n- Subtree exploring\n```json\n[\n    {\n        \"id\": \"1e82I6XdsT6Sla4JI6Eg-cfqQFx8PoZbv\",\n        \"name\": \"ALBUM1\",\n        \"realType\": \"application/vnd.google-apps.folder\",\n        \"type\": \"folder\",\n        \"url\": \"https://drive.google.com/drive/folders/1e82I6XdsT6Sla4JI6Eg-cfqQFx8PoZbv\",\n        \"content\": [\n            {\n                \"id\": \"19mppIinV6H-5yEJrpI_IEV6kOaqcYXYV\",\n                \"name\": \"testimage.png\",\n                \"realType\": \"image/png\",\n                \"type\": \"image\",\n                \"url\": \"https://lh3.google.com/u/0/d/19mppIinV6H-5yEJrpI_IEV6kOaqcYXYV=w1920-h942-iv2\"\n            }\n        ]\n    },\n    {\n        \"id\": \"1j1bM93BzEUFq9qnxkg83zCU7EagFmdpI\",\n        \"name\": \"ALBUM2\",\n        \"realType\": \"application/vnd.google-apps.folder\",\n        \"type\": \"folder\",\n        \"url\": \"https://drive.google.com/drive/folders/1j1bM93BzEUFq9qnxkg83zCU7EagFmdpI\",\n        \"content\": []\n    },\n    {\n        \"id\": \"18wLall8RXQpEbUn_tOsO_IAXbyCoVaLA\",\n        \"name\": \"testimage1.png\",\n        \"realType\": \"image/png\",\n        \"type\": \"image\",\n        \"url\": \"https://lh3.google.com/u/0/d/18wLall8RXQpEbUn_tOsO_IAXbyCoVaLA=w1920-h942-iv2\"\n    }\n]\n```\n\n- No subtree exploring (You can see the content of a folder with GetGoogleDrive(\"Folder id\"))\n```json\n[\n    {\n        \"id\": \"1e82I6XdsT6Sla4JI6Eg-cfqQFx8PoZbv\",\n        \"name\": \"ALBUM1\",\n        \"realType\": \"application/vnd.google-apps.folder\",\n        \"type\": \"folder\",\n        \"url\": \"https://drive.google.com/drive/folders/1e82I6XdsT6Sla4JI6Eg-cfqQFx8PoZbv\",\n    },\n    {\n        \"id\": \"1j1bM93BzEUFq9qnxkg83zCU7EagFmdpI\",\n        \"name\": \"ALBUM2\",\n        \"realType\": \"application/vnd.google-apps.folder\",\n        \"type\": \"folder\",\n        \"url\": \"https://drive.google.com/drive/folders/1j1bM93BzEUFq9qnxkg83zCU7EagFmdpI\",\n    },\n    {\n        \"id\": \"18wLall8RXQpEbUn_tOsO_IAXbyCoVaLA\",\n        \"name\": \"testimage1.png\",\n        \"realType\": \"image/png\",\n        \"type\": \"image\",\n        \"url\": \"https://lh3.google.com/u/0/d/18wLall8RXQpEbUn_tOsO_IAXbyCoVaLA=w1920-h942-iv2\"\n    }\n]\n```\n\n## Example\n```js\nconst GetGoogleDrive = require('drive-album');\nconst fs = require('fs');\n\nasync function test(){\n    const drive = await GetGoogleDrive(\"1UJ4PiRfyhPelXacznccRoGBPXLDEDvCb\", true);\n    fs.writeFileSync(\"test.json\", JSON.stringify(drive, undefined, 4));\n}\n\ntest();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoannchb-pro%2Fdrive-album","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoannchb-pro%2Fdrive-album","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoannchb-pro%2Fdrive-album/lists"}