-2

I am trying to scrape facebook page url for video views count on my multiple competitor's pages. Problem is: Facebook Login.

What is the best way to login to facebook for scraping purpose. I looked around on stack overflow and other places. But most of those answers are outdated.

Vaibhav Rathi
  • 340
  • 1
  • 4
  • 16
  • Take a look into facebook graph api. Much more easier than scraping facebook. – salmanwahed Oct 23 '17 at 12:28
  • @salmanwahed Thanks for the response, I am familiar with graph api but i cannot get video views from that. I have to manually scrape, hence, login problem. – Vaibhav Rathi Oct 23 '17 at 12:43
  • 1
    scraping is not allowed on facebook. you MUST use the graph api. if there is no way with the graph api, then it´s not possible. – andyrandy Oct 23 '17 at 12:47
  • See [this](https://developers.facebook.com/docs/graph-api/reference/v2.10/video/video_insights) – jdoe Oct 23 '17 at 13:21
  • Possible duplicate of [How to get the number of video's views in facebook](https://stackoverflow.com/questions/36280351/how-to-get-the-number-of-videos-views-in-facebook) – jdoe Oct 23 '17 at 13:22
  • @jdoe I am looking to get video views from my competitor's pages. I cannot access that using graph api. – Vaibhav Rathi Oct 24 '17 at 07:10

1 Answers1

0

I found an Answer, i used requests module to login and scraped using BeautifulSoup. Login to facebook was not that easy though.

Vaibhav Rathi
  • 340
  • 1
  • 4
  • 16