I have been trying to get the views and shares from a FB url (https://www.facebook.com//peopleareawesome/videos/1393626100686564) but I am stuck. I am using Beautifulsoup in Python3 and I am able to parse the page but I can't filter out the info I need. Below is my code and I would really appreciate any help. All I need is to write a function that takes in an URL and outputs number of shares and views.
import urllib.request
from bs4 import BeautifulSoup
response = urllib.request.urlopen("https://www.facebook.com/peopleareawesome/videos/1393626100686564/")
soup = BeautifulSoup(response, "html5lib")
for line in soup.findAll('script'): # should it be div?
print (line) #this is where I expect to get views and shares info
Thanks in advance.