WEBVTT

00:00.050 --> 00:09.350
Now, in order to find this secret URL we can use to access the API or access Facebook without having

00:09.350 --> 00:10.740
JavaScript enabled.

00:10.760 --> 00:16.580
We can take a look and use the inspector in the developer tools in Firefox.

00:16.610 --> 00:25.370
We click on the login here and if we go a bit up we can see this form tag here with the method of post

00:25.370 --> 00:28.460
and the URL inside of the action here.

00:29.060 --> 00:32.960
So if we go ahead and copy this action URL here.

00:34.190 --> 00:35.360
Copy that.

00:35.510 --> 00:38.600
And we go inside of Postman.

00:42.150 --> 00:47.610
And we paste the URL in here and then we change this to post.

00:49.390 --> 00:54.700
And then we need to add our email and our password for Facebook.

00:54.700 --> 00:58.600
So we go inside of the body in here in Postman.

00:59.560 --> 01:04.030
If you don't have Postman already, just Google Postman and download it.

01:04.030 --> 01:10.270
It's free to use and it's really cool for exploring APIs and things like this.

01:11.260 --> 01:18.640
So inside of the body section, go and click X vive form URL encoded.

01:18.640 --> 01:25.420
Basically it's formatting the data so that it's the same way as when you're using a web page and submitting

01:25.420 --> 01:28.000
data via via post.

01:28.570 --> 01:32.320
So then we type in our Facebook email.

01:36.510 --> 01:38.490
And we type in pass.

01:38.790 --> 01:41.490
That's going to be our Facebook password.

01:44.000 --> 01:45.860
And then we say send.

01:52.270 --> 01:56.860
And we get a bunch of text, which is basically a web page.

01:57.610 --> 01:59.830
And here we can see.

02:01.130 --> 02:04.460
Basically we are inside of the page now.

02:06.340 --> 02:13.120
So now we can see I'm basically going I'm going straight into Facebook.

02:14.970 --> 02:19.440
But here we can see some post in here.

02:22.840 --> 02:27.670
And well, that's basically like seeing your wall, your Facebook wall.

02:28.270 --> 02:31.660
Then you can go on and scrape as much data as you want.

02:31.690 --> 02:34.750
Of course, it will probably have some kind of throttling.

02:35.170 --> 02:42.490
And, um, well, in the next lecture, let's look at how we actually do this inside of requests inside

02:42.490 --> 02:43.660
NodeJS.
