Imgscrape
Imgscrape is a selenium and pillow based image scraper.
Supported Websites
Features!
Scrapes image link
Convert image into thumbnail
Encode image into Base64
Save image directly to folder : In development
Imgscrape is a selenium and pillow based image scraper. You just provide the product link or a list of the same and it will provide you the links in image or list of it based on your argument.
The reason behind this idea is to scrape image links are unreachable by using Beautifulsoup4. Thus switching to selenium gets you the images you need.
Installation & Usage
$ pip install imgscrape
Imgscrape requires chromedriver to run. Download it.
After downloading you’ll need to provide the path of chromedriver to the constructer.
from imgscrape import imgscrape
any_var = #path to driver
var = imgscrape(producturl, path= any_var)
you can feed a list of product urls and get the image links in a list.
from imgscrape import imgscrape
any_var = #path to driver
lst_var = ['link1', 'link2', 'link3']
var = imgscrape(*lst_var, path= any_var)
Development
Want to contribute? Great! Create a pull request and we’ll see.
Support
linux
windows
### Todos
Add support for MacOS
Add more supported websites
License
MIT
Free Software, Hell Yeah!
Metadata
Release files for imgscrape 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imgscrape-0.1.1.tar.gz | 2.7 kB | Without provenance | Details for imgscrape-0.1.1.tar.gz |
Release files / imgscrape-0.1.1.tar.gz
| Download URL | imgscrape-0.1.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdf8403046e3c8229a767c448dc41f9407d58197c0e66a6a7267eaceff340d82
|
|
BLAKE2b-256 checksum How to use checksums |
bce482190c147acbad81b1f21316604ebdfd4a20a7a64ef92df0247724d3d285
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for imgscrape 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.