Skip to content

codesanook/codesanook-fb-comments-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Read all comments of given post's permalink.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published