Skip to content

Commit

Permalink
Moved token to sepearate ignored file
Browse files Browse the repository at this point in the history
  • Loading branch information
petergarnaes committed Dec 12, 2017
1 parent af0106b commit 46f8618
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
package-lock.json
token
output.json
5 changes: 3 additions & 2 deletions API_crawler.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
let fetch = require('node-fetch');
let fs = require('fs');

let token = 'EAACEdEose0cBAFZAZCYf0SFhJpTDYbWcr4ZC7oz8dg13RFegXonrHuAgKlIoXkEtuvSyToZASMEhaxPxIJ95kAdvmtoBDEWhwAk10V7y591OzlIZA2AgHm7vqjl7wZAe28PEgZCownJzEpTYS4fl9Prvg7uLiBQ96ZCs4lPf26ZAmpxVN5ZAcGJAUBdAAmf0xgmrryJ1TaJ54I2AZDZD';
let token = (""+fs.readFileSync('token')).replace(/\n/,"");
console.log(token);
let limit = 150;

let args = '?access_token='+token+'&fields=id,message,comments{message}&format=json&method=get&pretty=0&suppress_http_code=1&limit=150';
let api_version = '2.11';
let baseUrl = 'https://graph.facebook.com';
let url = baseUrl+'/181665176189/feed'+args;

console.log(url)
let result = [];

let currentPage = url;
Expand Down

0 comments on commit 46f8618

Please sign in to comment.