WEBVTT

00:00.650 --> 00:01.460
Okay, guys.

00:01.460 --> 00:08.420
So in the previous section, I said that I couldn't find a way to scrape Facebook or mobile Facebook

00:08.420 --> 00:16.250
page without having JavaScript enabled, which means that we had to use something like puppeteer a JavaScript

00:16.250 --> 00:21.080
enabled browser to scrape Facebook at least also the mobile version.

00:21.500 --> 00:29.570
However, I was in contact with the author on this article and he told me to try it out on Firefox.

00:29.570 --> 00:39.680
And oddly enough, if you try to go on mobile dot Facebook.com on Firefox, there's no JavaScript.

00:39.770 --> 00:42.680
So I don't know why.

00:42.710 --> 00:44.960
Of course they have some kind of reason.

00:44.960 --> 00:47.660
Maybe Firefox is a different JavaScript engine.

00:47.660 --> 00:54.170
I don't know, but this page is only pure HTML, CSS.

00:54.200 --> 00:56.300
There's no JavaScript at all.

00:56.300 --> 00:58.550
So see we go down to the bottom.

00:58.550 --> 01:03.630
It's not going to auto load the page because there's no JavaScript that can do it.

01:03.630 --> 01:12.840
You have to manually press here to see more post and that's really great because that means there's

01:12.840 --> 01:21.510
way less chance of Facebook detecting that you're scraping the page and you can use something really

01:21.510 --> 01:26.910
basic, such as request to get the data on the page and scrape it.

01:27.480 --> 01:30.930
And of course it has its disadvantages.

01:30.930 --> 01:36.300
Maybe also it might be a little more complex to use requests compared to puppeteer, but let's try and

01:36.300 --> 01:40.890
see how we can scrape data on Facebook using request now.
