{"id":13448192,"url":"https://github.com/sananth12/ImageScraper","last_synced_at":"2025-03-22T08:31:52.298Z","repository":{"id":17354341,"uuid":"20125920","full_name":"sananth12/ImageScraper","owner":"sananth12","description":":scissors: High performance, multi-threaded image scraper","archived":false,"fork":false,"pushed_at":"2018-01-04T19:35:01.000Z","size":12287,"stargazers_count":756,"open_issues_count":24,"forks_count":99,"subscribers_count":37,"default_branch":"master","last_synced_at":"2024-10-02T07:59:20.608Z","etag":null,"topics":["command-line","commandline-tool","pypi","python","scraper","scraping","terminal"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sananth12.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-24T09:04:38.000Z","updated_at":"2024-09-25T09:40:18.000Z","dependencies_parsed_at":"2022-09-24T15:34:22.912Z","dependency_job_id":null,"html_url":"https://github.com/sananth12/ImageScraper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sananth12%2FImageScraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sananth12%2FImageScraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sananth12%2FImageScraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sananth12%2FImageScraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sananth12","download_url":"https://codeload.github.com/sananth12/ImageScraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221826281,"owners_count":16887131,"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":["command-line","commandline-tool","pypi","python","scraper","scraping","terminal"],"created_at":"2024-07-31T05:01:38.387Z","updated_at":"2024-10-28T12:30:30.139Z","avatar_url":"https://github.com/sananth12.png","language":"Python","readme":"ImageScraper :page_with_curl:\n============\nA high performance, easy to use, multithreaded command line tool which downloads images from the given webpage.\n\n| Build Status | Downloads | Test Coverage |\n| ------------ | --------- | ------------- |\n| [![Build Status](https://travis-ci.org/sananth12/ImageScraper.svg?branch=master)](https://travis-ci.org/sananth12/ImageScraper) | [![PyPi downloads](http://img.shields.io/badge/downloads-30k%20total-blue.svg)](https://pypi.python.org/pypi/ImageScraper) | [![Coverage Status](https://coveralls.io/repos/sananth12/ImageScraper/badge.svg?branch=coverage)](https://coveralls.io/r/sananth12/ImageScraper?branch=coverage) |\n\n#### Demo\nClick [here](http://showterm.io/d3aef5bc3f37cd49757d1#fast) to see it in action!\n\nDownload\n--------\n### tar file:\nGrab the latest stable build from **- Pip: [https://pypi.python.org/pypi/ImageScraper](https://pypi.python.org/pypi/ImageScraper)** \n\n### pip install (recommended):\nYou can also download using pip:\n```sh\n$ pip install ImageScraper\n``` \n#### **Dependencies**\nNote that ``ImageScraper`` depends on ``lxml``, ``requests``, ``setproctitle``, and ``future``. \nIf you run into problems in the compilation of ``lxml`` through ``pip``, install the ``libxml2-dev`` and ``libxslt-dev`` packages on your system.\n\nUsage\n-----\n```sh\n$ image-scraper [OPTIONS] URL\n```\n\n\nYou can also use it in your Python scripts. (Deprecated)\n```py\nimport image_scraper\nimage_scraper.scrape_images(URL)\n```\n\nOptions\n-------\n```sh\n-h, --help            show this help message and exit\n-m MAX_IMAGES, --max-images MAX_IMAGES\n                    Limit on number of images\n-s SAVE_DIR, --save-dir SAVE_DIR\n                    Directory in which images should be saved\n-g, --injected        Scrape injected images\n--proxy-server PROXY_SERVER\n                    Proxy server to use\n--min-filesize MIN_FILESIZE\n                    Limit on size of image in bytes\n--max-filesize MAX_FILESIZE\n                    Limit on size of image in bytes\n--dump-urls           Print the URLs of the images\n--formats [FORMATS [FORMATS ...]]\n                    Specify formats in a list without any separator. This\n                    argument must be after the URL.\n--scrape-reverse      Scrape the images in reverse order\n--filename-pattern FILENAME_PATTERN\n                    Only scrape images with filenames that match the given\n                    regex pattern\n--nthreads NTHREADS   The number of threads to use when downloading images.\n```\n\n### If you downloaded the tar:\nExtract the contents of the tar file.\n\n\n```sh\n$ cd ImageScraper/\n$ python setup.py install\n$ image-scraper --max-images 10 [url to scrape]\n\n```\n\nExamples\n--------\n\nScrape all images \n```sh\n$ image-scraper  ananth.co.in/test.html\n```\n\nScrape at max 2 images\n```sh\n$ image-scraper -m 2 ananth.co.in/test.html\n```\n\nScrape only gifs and download to folder ./mygifs\n```sh\n$ image-scraper -s mygifs ananth.co.in/test.html --formats gif\n```\n\n#### NOTE:\nBy default, a new folder called \"images_\u003cdomain\u003e\" will be created in the working directory, containing all the downloaded images.\n\n\n\n\nIssues\n------\n\nQ.)All images were not downloaded?\n\nIt could be that the content was injected into the page via JavaScript; this scraper doesn't run JavaScript. \n \n\nContribute\n----------\nIf you want to add features, improve them, or report issues, feel free to send a pull request!!\n\n### Contributors\n\n- [sananth12](https://github.com/sananth12) ([Anantha Natarajan](http://ananth.co.in))\n- [ssundarraj](https://github.com/ssundarraj) (Sriram Sundarraj)\n- [vigneshmanix](https://github.com/vigneshmanix) (Vignesh M) \n- [osborne6](https://github.com/osborne6)\n- [tsleyson](https://github.com/tsleyson)\n- [joshwget](https://github.com/joshwget)\n- [dannyflax](https://github.com/dannyflax)\n\nDisclaimer\n----------\n\nImageScraper is to be used education/research purposes only. The authors takes NO responsibility and/or liability for how you choose to use any of the tools/source code/any files provided. By using ImageScraper, you understand that you are AGREEING TO USE AT YOUR OWN RISK.\n\n\nLicense\n-------\n![GPL V3](https://raw.githubusercontent.com/sananth12/ImageScraper/master/images/gpl.png)\n\n\n[![Analytics](https://ga-beacon.appspot.com/UA-60764448-1/ImageScraper/README.md)](https://github.com/igrigorik/ga-beacon)\n","funding_links":[],"categories":["Multimedia and File Formats","Python"],"sub_categories":["Directory Navigation"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsananth12%2FImageScraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsananth12%2FImageScraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsananth12%2FImageScraper/lists"}