Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.08 KB

File metadata and controls

35 lines (28 loc) · 1.08 KB

Codesanook FB comments reader

Read all comments of given post's permalink.

Requirements

  • Node >= 7
  • Facebook user credentials

Authentication

You can either pass your facebook credentials as environment variable:

  • FB_EMAIL for storing email
  • FB_PASSWORD for storing password
  • FB_2FA for storing 2FA if you use it. (optional)

CLI Arguments:

    --fbPostUrl (required) This takes precedence over the env variable FB_POST_URL, it is Facebook post's permalink.
    --fbEmail         This takes precedence over the env variable FB_EMAIL
    --fbPassword     This takes precedence over the env variable FB_PASSWORD
    --fb2fa       This takes precedence over the env variable FB_2FA (optional)

Examples

> yarn install

> $env:FB_EMAIL = "space-ant@codesanook.com"
> $env:FB_PASSWORD = "1234567890"
> $env:FB_POST_URL = "https://www.facebook.com/groups/ThaiPGAssociateSociety/permalink/xxxxx/"
> $env:FB_2FA = "123456" # optional

> yarn start

Result

All comment HTML are in comments.text that you can process latest, it will be remove if you run the command again.