GithubHelp home page GithubHelp logo

facebook-scrape-group's People

Contributors

csabapalfi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

facebook-scrape-group's Issues

Chrome opens with a new default account

Hi,

Great project! I think it might be used by many people, hope you will continue working on it!

First when I ran node index.js <groupid> | tee permalinks.csv I got Error: Cannot find module 'chrome-launcher', so I installed chrome-launcher with npm install chrome-launcher.
Now what happens is that Chrome opens with a new default account, so I'm not logged in in FB anymore, so I can't scrape. Do you know how to fix it?

P.S.
While Graph API is a useful thing, you can only use it if you have the group token, which is often not the case...

MutationObserver rocks

const target = document.querySelector('[aria-label="News Feed"]');
const observer = new MutationObserver((records) => console.log(records));
observer.observe(target, {childList: true});
await page.evaluate(() => {
   const observer = new MutationObserver(
   function() {
     // communicate with node through console.log method
     console.log('__mutation')
    }
   )
   const config = {
     attributes: true,
     childList: true,
     characterData: true,
     subtree: true
   }
   observer.observe(target, config)
})
page.on('console', async (msg) => {
   if (msg.text === '__mutation') {
     // do something...
   }
})

Run fail in window10

Pls help me!

'pgrep' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 255 npm ERR! [email protected] start: pgrep Chrome \| xargs kill && node index.js npm ERR! Exit status 255 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\hdchau\AppData\Roaming\npm-cache_logs\2019-02-14T06_21_44_028Z-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.