facebook_page_scraper
facebook_page_scraper copied to clipboard
error at find_elements method : local variable 'status_link' referenced before assignment
I just started getting this error message today and can't find a way around it. I need the data for my research. Any help will be really appreciated.
I ran the code below #import Facebook_scraper class from facebook_page_scraper from facebook_page_scraper import Facebook_scraper
#instantiate the Facebook_scraper class
page_name = "metaai" posts_count = 10 browser = "firefox" proxy = "IP:PORT" #if proxy requires authentication then user:password@IP:PORT timeout = 600 #600 seconds headless = True meta_ai = Facebook_scraper(page_name, posts_count, browser, proxy=proxy, timeout=timeout)
Did it work earlier with this set?
What kind of proxy are you using? The code you've shared only shows IP:PORT
which is a placeholder and should be replaced by an actual proxy or alternatively left blank.
Does
meta_ai = Facebook_scraper(page_name, posts_count, browser, timeout=timeout)
work?
Have you tried using a different browser?