pip install selenium
pip install beautifulsoup4
_USERNAME = 'ABCabc'
_PASSWORD = 'XYZxyz'
PAGE_LINKS = [
'https://www.facebook.com/Grameenphone',
'https://www.facebook.com/RobiFanz',
'https://www.facebook.com/airtelbuzz/',
'https://www.facebook.com/10minuteschool/',
]
-
You can set
number of scroll
in a page that depth you want to scroll default is 3.
You can also setgrab_comment
True or False. That decide that are you want to grab comment of a post or not?numOfScroll = 3 grab_comment = True
-
Output will save in a file name
data.json
in JSON format.
python run.py