1.0.5 • Published 7 years ago

facebook-keyword-crawler v1.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Facebook Keyword Crawler

A Simple node module for crawling facebook post within the page you are interested.

Disclaimer Please use this module with appropriate interval. You have my warn.

Installation

Easy enough

npm i facebook-keyword-crawler

Basic Usage

//Import the package
const FacebookKeywordCrawler = require('facebook-keyword-crawler');

//Initialize
let fbCrawler = new FacebookKeywordCrawler(FACEBOOK_API_TOKEN);

//Set Page Array 
let pageArray = ['FacebookHK','thebeatles','124298817619313'];

fbCrawler.setPage(pageArray);

//Crawl
fbCrawler.crawl().then(()=>{
  fbCrawler.search(QUERY_TEXT).then((result)=>{
    console.log(result);
  })
});




    ```