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:46
PythonSimplified
1 year ago $0.11 earnedHow I Learned Python - Step by Step Roadmap for Beginners
6935 -
LIVE
Vigilant News Network
14 hours agoLiz Cheney’s Problems Just Got WORSE | The Daily Dose
1,534 watching -
22:04
Scammer Payback
16 hours agoTorturing a Scammer Till They Give Up
1.25K7 -
1:51:30
Game On!
13 hours ago $6.54 earnedConor McGregor vs Logan Paul: BIGGEST Boxing Match of the Century!
49.2K9 -
LIVE
2 MIKES LIVE
16 hours agoTHE MIKE SCHWARTZ SHOW with DR. MICHAEL J SCHWARTZ 12-18-2024
240 watching -
LIVE
Jeff Ahern
1 hour agoNever Woke Wednesday with Jeff Ahern( Leftists losing everywhere)
265 watching -
9:04
GBGunsRumble
13 hours agoGBGuns Armory Ep 134 Walther PDP F Pro
28.4K1 -
13:12
Melonie Mac
21 hours agoAspyr Teases Possible New Tomb Raider Games in Classic Remastered Style
19.1K7 -
44:49
Chrissy Clark
15 hours agoThe Rise Of Female Shooters, ABC News’ $16M Settlement, & MORE I Underreported Stories
15.5K4 -
2:49:13
InfiniteWaters(DivingDeep)
23 hours agoIt's Over - The Matrix Is Cooked | Infinite Waters
16.2K9