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
- 	
				 2:19:12 2:19:12PythonSimplified3 years ago $0.04 earnedPyScript First Impressions - Run Python in HTML document2861
- 	
				 LIVE LIVETundra Tactical9 hours ago $14.19 earned🚨Gun News and Game Night🚨 ATF Form 1 Changes, BRN-180 Gen 3 Issues??, and Battlefield 6 Tonight!260 watching
- 	
				 1:45:13 1:45:13Glenn Greenwald6 hours agoJD Vance Confronted at Turning Point about Israel and Massie; Stephen Miller’s Wife Screams “Racist” and Threatens Cenk Uygur with Deportation; Rio's Police Massacre: 120 Dead | SYSTEM UPDATE #54087.4K85
- 	
				 LIVE LIVESpartakusLIVE3 hours agoSpart Flintstone brings PREHISTORIC DOMINION to REDSEC276 watching
- 	
				 1:05:02 1:05:02BonginoReport6 hours agoKamala CALLED OUT for “World Class” Deflection - Nightly Scroll w/ Hayley Caronia (Ep.167)106K63
- 	
				 54:36 54:36MattMorseTV4 hours ago $24.06 earned🔴The Democrats just SEALED their FATE.🔴41.3K55
- 	
				 8:07:01 8:07:01Dr Disrespect11 hours ago🔴LIVE - DR DISRESPECT - ARC RAIDERS - SOLO RAIDING THE GALAXY119K12
- 	
				 1:32:00 1:32:00Kim Iversen7 hours agoThe World’s Most “Moral” Army — Kills 40 Kids During "Ceasefire" | Socialism's Coming: The Zohran Mamdani Agenda96.8K162
- 	
				 1:04:50 1:04:50TheCrucible6 hours agoThe Extravaganza! EP: 63 with Guest Co-Host: Rob Noerr (10/30/25)82.8K6
- 	
				 LIVE LIVEGritsGG5 hours agoQuads! #1 Most Wins 3880+!96 watching