Premium Only Content

Web Scraping Facebook with Selenium
PLEASE NOTE: Selenium was updated since this video was filmed, you can find the complete code updated in December 2022 here:
https://github.com/MariyaSha/WebscrapingFacebook/blob/main/FB_Scraper_Revamped_Dec2022.ipynb
🛑 PLEASE NOTE 🛑
Selenium changed in that way:
commands of the following syntax:
driver.find_elements_by_tag_name("input")
were replaced with commands of this syntax:
driver.find_elements(By.TAG_NAME, "input")
In this tutorial you will learn how to create a web scraping bot that can download an entire Facebook image gallery, both tagged and personal photos at once.
With the help of Python, Jupyter Notebook, Selenium, and Chrome Driver - you will achieve 100% automation and obtain all the tools to adjust your code in the future, should Facebook change anything on their end.
Web Scraping Instagram with Selenium CODE ON GITHUB:
https://github.com/MariyaSha/WebscrapingInstagram/blob/main/WebscrapingInstagram_completeNotebook.ipynb
Web Scraping Instagram with Selenium VIDEO TUTORIAL:
https://youtu.be/iJGvYBH9mcY
Web Scraping Instagram with Selenium ARTICLE ON MEDIUM:
https://medium.com/analytics-vidhya/web-scraping-instagram-with-selenium-b6b1f27b885
Web Scraping Facebook with Selenium COMPLETE NOTEBOOK:
https://github.com/MariyaSha/WebscrapingFacebook/blob/main/FB_Scraper.ipynb
ARE YOU NEW TO PYTHON?
************************************
the tutorial below will show you how to:
a. quickly install Python
b. quickly install Jupyter Notebook
https://youtu.be/FZ5baopI_mo
************************************
TIMESTAMPS:
************************************
00:00 - 2:23 intro
************************************
a. preparation steps
02:23 - Install Selenium
03:07 - Install Wget
03:39 - Download Chrome Driver
04:44 - Launch Jupyter Notebook
b. coding
05:29 - Imports and Intro
06:10 - Webdriver get command
07:09 - Developer Tools Guide
08:12 - Login: Username, Password, Submit
09:26 - Dismiss Alerts: Stackoverflow
10:59 - Shortcut to get Photo Gallery
11:58 - Loop over tagged and personal photos
13:12 - Scroll to the end of the page: Loop
15:41 - Target all anchor elements on the page
17:21 - Target specific anchor elements
20:04 - Target all image elements on the page
22:16 - Target a specific image element
24:11 - Create a new directory at the root
25:06 - Download all the photos
25:53 - Last Automation Step
26:52 - Run the bot
27:04 - Test the bot
************************************
#python #pythonprogramming #pythontutorial #learnpython #webscraping #webscrape #selenium #webscrapefacebook #extractimages
-
6:36
PythonSimplified
2 years ago $0.02 earnedCan Machines Think?? Alan Turing's Imitation Game Simplified
5762 -
2:28:45
Benny Johnson
3 hours agoAmerican Martyr: Remembering Charlie Kirk | FBI Reveals New Footage of Assassin, Trump's Eulogy LIVE
124K141 -
25:38
The Rubin Report
3 hours agoRemembering Charlie Kirk & 9/11
152K23 -
1:00:32
VINCE
4 hours agoRest In Peace Charlie Kirk | Episode 123 - 09/11/25
324K273 -
LIVE
LFA TV
7 hours agoLFA TV ALL DAY STREAM - THURSDAY 9/11/25
4,942 watching -
LIVE
Bannons War Room
6 months agoWarRoom Live
8,355 watching -
25:21
The Shannon Joy Show
2 hours agoA message of encouragement and a call for faith and unity after the tragic killing of Charlie Kirk
35.3K9 -
1:31:37
The Big Mig™
3 hours agoIn Honor Of Charlie Kirk, Rest In Peace 🙏🏻
32.2K14 -
1:36:35
The White House
5 hours agoPresident Trump and the First Lady Attend a September 11th Observance Event
108K41 -
1:38:49
Dear America
4 hours agoWe Are ALL Charlie Now! This Isn’t The End. We Will FIGHT FIGHT FIGHT
189K193