Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fccoelho7/jscrawler
The best way to share JS apps content on Facebook!
https://github.com/fccoelho7/jscrawler
Last synced: 11 days ago
JSON representation
The best way to share JS apps content on Facebook!
- Host: GitHub
- URL: https://github.com/fccoelho7/jscrawler
- Owner: fccoelho7
- License: mit
- Created: 2016-08-02T23:24:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-04T00:41:09.000Z (over 8 years ago)
- Last Synced: 2024-10-11T20:18:41.669Z (27 days ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSCrawler
The best way to share JS apps content on Facebook!## Why?
When you put url on your Facebook, it'll load the content based on `og:` meta tags, so, if you're using JavaScript apps, won't wait your page load and will get wrong data. This module will load your page first, if accessed by Facebook, and will return the correct informations to share.
## Setup
Just type:
`npm i --save jscrawler`## Dependencies
This is an **Express Framework** module.
## Usage
```js
import JSCrawler from 'jscrawler'app.get('*', (req, res, next) => {
new JSCrawler(req, res, next)
})
```