{"id":23552283,"url":"https://github.com/onyazuka/cool-images-scraper","last_synced_at":"2025-11-01T13:30:19.697Z","repository":{"id":37511951,"uuid":"187232077","full_name":"onyazuka/Cool-Images-Scraper","owner":"onyazuka","description":"php images scraper","archived":false,"fork":false,"pushed_at":"2022-06-21T17:50:19.000Z","size":77,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-26T11:10:01.538Z","etag":null,"topics":["image","images","php","scraper","web"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/onyazuka.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":"2019-05-17T14:37:15.000Z","updated_at":"2020-02-25T12:54:57.000Z","dependencies_parsed_at":"2022-08-18T22:23:36.587Z","dependency_job_id":null,"html_url":"https://github.com/onyazuka/Cool-Images-Scraper","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/onyazuka%2FCool-Images-Scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyazuka%2FCool-Images-Scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyazuka%2FCool-Images-Scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyazuka%2FCool-Images-Scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onyazuka","download_url":"https://codeload.github.com/onyazuka/Cool-Images-Scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239293935,"owners_count":19615041,"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":["image","images","php","scraper","web"],"created_at":"2024-12-26T11:10:03.074Z","updated_at":"2025-11-01T13:30:19.633Z","avatar_url":"https://github.com/onyazuka.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cool-Images-Scraper\nphp images scraper\n\n## Description\nPhp script for scraping web images.\n\n## Usage\nThe script accepts one argument(in argv) - options file(.json):\n\nmain.php options.json\n\n## Options\n- urls [array], MANDATORY - list of urls to scrap from;\n- outputDir [string or array], MANDATORY - directory or directories list, in which downloaded images will be stored;\n- recursive [boolean] - if set, walks by all available urls (in a href=...), if not, grabs images only from this page;\n- depth [integer] - maximum level of recursion;\n- whiteList [array of regexp] - patterns of allowed urls;\n- blackList [array of regexp] - patterns of disallowed urls;\n- path [array of regex] - pattern of scraper's work path. If set, the scraper works in recursive mode, with depth = count($options['path']). \n  So, on the first level of recursion, path[0] is used, on the second - path[1]...;\n- imageNamePatters [array of regex] - array of patterns of images' names, that should be saved;\n- maxImageSize [numeric] - if an image file don't satisfies this condition, it will not be saved;\n- minImageSize [numeric] - if an image file don't satisfies this condition, it will not be saved;\n- fileRewrite [bool] - if set and true, rewrites file in 'outputDir' on conflict, else skips new file, preserving old;\n- createDirIfNotExists [string] - ONE OF 'simple' or 'recursive', creates outputDir if it not exists;\n- initCookies[array or string] - either key-value array, or string in format \"remixflash=32.0.0; remixscreen_depth=24;\";\n- cookieJar [string] - file name in which session cookies will be stored;\n- additionalHeaders [array] - must be in format array('Content-type: text/plain', 'Content-length: 100').\n\n## Examples\nYou can view the examples of configuration files at examples/options%.json.\n\n## Todo\nMultithread, JS support(if this can be done).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonyazuka%2Fcool-images-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonyazuka%2Fcool-images-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonyazuka%2Fcool-images-scraper/lists"}