eliason-j
eliason-j

Reputation: 23

Scraping Facebook Video Length from URL

I have a list of URLs for videos on Facebook (one, for example: https://www.facebook.com/StudioCtv/videos/1314510761962662/) and I'm trying to scrape the length/duration of each video (i.e. 0:00, 1:32, 4:59, etc.). I need the data for analysis I'm doing in R but I'm open to different ways of approaching this. Is there a straightforward way to collect this information?

Upvotes: 0

Views: 425

Answers (1)

Titan4
Titan4

Reputation: 11

Why dont you create an app say Your_Video_app by going to https://developers.facebook.com/docs , then get a token for your app (your secret key) and authenticate yourself.

After that use RStudio or R , and get httr, RCurl, and RFacebook packages. Authenticate token using the Oauth. Next use getUser function or getLikes and you should be able to get details about your data.

Upvotes: 1

Related Questions