# scrape-fb-ogcache

> Open Graph cache scraper for Node.js

Latest version **1.0.6** (published 2016-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install scrape-fb-ogcache
pnpm add scrape-fb-ogcache
yarn add scrape-fb-ogcache
bun add scrape-fb-ogcache
```

## 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.6 |
| Published | 2016-08-30 |
| First published | 2016-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daisuke Nakahama |
| Maintainers | daisukenakahama |
| Keywords | opengraph, facebook, cache, scrape |

## Links

- npm: https://www.npmjs.com/package/scrape-fb-ogcache
- Repository: https://github.com/daisukenakahama/scrape-fb-ogcache
- Homepage: https://github.com/daisukenakahama/scrape-fb-ogcache#readme
- Issues: https://github.com/daisukenakahama/scrape-fb-ogcache/issues
- npm.io page: https://npm.io/package/scrape-fb-ogcache

## Dependencies (1)

- [fb](https://npm.io/package/fb.md) ^1.1.1

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2016-08-30
- 1.0.5 — 2016-08-30

## README

# scrape-fb-ogcache

[![Build Status](https://travis-ci.org/daisukenakahama/scrape-fb-ogcache.svg?branch=master)](https://travis-ci.org/daisukenakahama/scrape-fb-ogcache)
[![Coverage Status](https://coveralls.io/repos/github/daisukenakahama/scrape-fb-ogcache/badge.svg)](https://coveralls.io/github/daisukenakahama/scrape-fb-ogcache)

## Scrapes open graph cache of Facebook with Node.js

With this package, you can write easily the code to scrape open graph cache of Facebook. On [Sharing Debugger of facebook for developers web site](https://developers.facebook.com/tools/debug/), you can request scraping the cache for just one URL. But it is not useful for multi-page web site.

## Installation

```bash
npm install --save scrape-fb-ogcache
```

## Usage

```nodejs
// example with es2015
const scrape = require('scrape-fb-ogcache');
const token = <PUT YOUR APP TOKEN OF FACEBOOK>;
scrape(url, token, (res) => {
  if (res.error) {
    console.log(`[${total - sitemap.urlset.url.length} / ${total} : FAILED]`, url, res);
  } else {
    console.log(`[${total - sitemap.urlset.url.length} / ${total} : SUCCESS]`, url);
  }
});
```

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