# flickr-scraper

> a flickr scraper node module

Latest version **1.0.1** (published 2016-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install flickr-scraper
pnpm add flickr-scraper
yarn add flickr-scraper
bun add flickr-scraper
```

## 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.1 |
| Published | 2016-08-24 |
| First published | 2016-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nick Scherman |
| Maintainers | nascherman |
| Keywords | flickr, scraper, api, jam3 |

## Links

- npm: https://www.npmjs.com/package/flickr-scraper
- Repository: https://github.com/nascherman/flickr-scraper
- Homepage: https://github.com/nascherman/flickr-scraper#readme
- Issues: https://github.com/nascherman/flickr-scraper/issues
- npm.io page: https://npm.io/package/flickr-scraper

## Dependencies (4)

- [xtend](https://npm.io/package/xtend.md) ^4.0.1
- [node-fetch](https://npm.io/package/node-fetch.md) ^1.6.0
- [querystring](https://npm.io/package/querystring.md) ^0.2.0
- [flickr-generate-urls](https://npm.io/package/flickr-generate-urls.md) 0.0.2

## Recent versions

- 1.0.1 (latest) — 2016-08-24
- 1.0.0 — 2016-08-22

## README

# flickr-scraper
A scraper for flickr that returns images. You can specify the available options from the flickr.photo.search endpoint. https://www.flickr.com/services/api/flickr.photos.search.html

## example usage 

```javascript
// api key here 
var API_KEY = '';
var opts = {
  api_key: API_KEY,
  tag_mode: 'any',
  tags: 'cars',
  imageOpts: {
    dimensions: 'largeSquare'
  },
  text: 'red'
};

var flickrScraper = new FlickrScraper(opts);
//images.map(url => `<img src="${url}" />`).join('');
flickrScraper.getImages(function(images) {
  var html = images.map(function(url) {
    return `<img src="${url}" />`;
  }).join('\n');
  document.body.innerHTML = html;
});
```
Would append the fetched photos to the DOM.

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