# cover-image-crawler

> Capture the mais image of url's, worken with various sites of notices and videos(thumbnail)[D[C.

Latest version **1.0.5** (published 2023-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install cover-image-crawler
pnpm add cover-image-crawler
yarn add cover-image-crawler
bun add cover-image-crawler
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-03-21 |
| First published | 2019-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | Wilson Filho |
| Maintainers | wilsonfilho |
| Keywords | image, crawler, scraping, cover, thumbnail, capture, url, link |

## Links

- npm: https://www.npmjs.com/package/cover-image-crawler
- Repository: https://github.com/jwmrf/cover-image-crawler
- Homepage: https://github.com/jwmrf/cover-image-crawler#readme
- Issues: https://github.com/jwmrf/cover-image-crawler/issues
- npm.io page: https://npm.io/package/cover-image-crawler

## Dependencies (5)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.3
- [express](https://npm.io/package/express.md) ^4.17.1
- [request](https://npm.io/package/request.md) ^2.88.0
- [image-size](https://npm.io/package/image-size.md) ^0.7.4
- [@types/cheerio](https://npm.io/package/@types/cheerio.md) ^0.22.13

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2023-03-21
- 1.0.4 — 2023-01-07
- 1.0.3 — 2019-12-20
- 1.0.2 — 2019-12-19
- 1.0.1 — 2019-12-19
- 1.0.0 — 2019-12-18

## README

# cover-image-crawler 

[![npm package](https://nodei.co/npm/cover-image-crawler.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/cover-image-crawle/)

[![NPM download][download-image]][download-url]
[![Package Quality][quality-image]][quality-url]

[quality-image]: https://packagequality.com/shield/cover-image-crawler.svg
[quality-url]: https://packagequality.com/#?package=cover-image-crawler
[download-image]: https://img.shields.io/npm/dm/cover-image-crawler.svg?style=flat-square
[download-url]: https://npmjs.org/package/cover-image-crawler

Get the url of main image of page's using scraping in each IMG tag on the site and return the largest image found.

Usually it takes 1 second to return the result, if not found the return will be empty.

## Installation

```
npm install cover-image-crawler
```

## Use example

```
const imageCrawler = require('cover-image-crawler');

imageCrawler.capture('https://www.diariodepernambuco.com.br/noticia/viver/2019/07/vintage-culture-e-mais-cinco-atracoes-em-festival-eletronico-no-recife.html', function(err, image_url){
  if(!err){
    console.log(image_url);
  }
})
```

## Use example - Async/Await

```
const imageCrawler = require('cover-image-crawler');

async function test(){
    
    let teste =  await imageCrawler.capture('https://www.bbc.com/news/world-us-canada-50863967');
    console.log(teste);
}
test()

Open to contributions and improvements
```
## Newspaper sites working with accuracy
* https://www.nytimes.com
* https://oglobo.globo.com
* https://www.theguardian.com
* https://www.washingtonpost.com/
* https://www.wsj.com/
* https://www.bbc.com/news/
* ...

### Test now on Vercel : https://info-link-node-api.vercel.app/

### Work for future versions: 

> Ability options how: HTML tags to make the scraping (beyond <img)

---
_Source: https://npm.io/package/cover-image-crawler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
