tamnt-image-pro
v1.1.5
Published
A module is built to download images from the website via the command
Downloads
7
Readme
tamnt-image-pro
A module is built to download images from the website via the command
Installation
Use the package manager npm to install tamnt-image.
npm install -g tamnt-image-pro
Usage
Init config file:
tamnt-image-pro init
Edit config file:
{
"item": ".snize-product", // Class contains image and name
"image": {
"tag": ".snize-item-image", // Class image: "The destination is tag 'img'"
"attr": "src" // Attribuild get link ('src', 'data-src',...)
},
"name": ".snize-title", // Class want get name
"nextPage": {
"mode": "redirect", // Mode next page ('redirect', 'normal')
"format": "https://www.beyondpolish.com/pages/search-results-page?q=perfect+match&page={0}", // redirect: link format
"minPage": 1, // redirect: min page
"maxPage": 23, // redirect: max page
"el": ".page_next", // normal: Class Page "The destination is tag 'a' if you choose the redirect mode"
"click": true // normal: (true: Click, false: redirect)
},
"url": "http://www.ibdbeauty.com/Products/Just-Gel-Polish/Polish/index.html", // normal: Domain want get
"domain": "https://www.beyondpolish.com", // Main domain
"openChrome": true // true: Open, false: Not Open
}
Run command:
tamnt-image-pro run
Contributing
Nguyễn Thành Tâm [email protected]
License
MIT