first_commit
This commit is contained in:
12
scrap_facebook.py
Normal file
12
scrap_facebook.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# https://pypi.org/project/facebook-page-scraper/
|
||||
from facebook_page_scraper import Facebook_scraper
|
||||
page_name = "fsmbtu"
|
||||
posts_count = 20
|
||||
browser = "chrome"
|
||||
#proxy = "IP:PORT" #if proxy requires authentication then user:password@IP:PORT
|
||||
timeout = 120 #600 seconds
|
||||
headless = True
|
||||
|
||||
meta_ai = Facebook_scraper(page_name, posts_count, browser, timeout=timeout, headless=headless)
|
||||
json_data = meta_ai.scrap_to_json()
|
||||
print(json_data)
|
||||
Reference in New Issue
Block a user