Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Web Scraping Facebook with Selenium - Automated Bot

Python Simplified via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to create an automated web scraping bot using Python, Selenium, and Chrome Driver to download entire Facebook image galleries, including tagged and personal photos. Master the process of setting up the development environment, implementing login functionality, navigating through Facebook's interface, and extracting image data. Explore techniques for handling alerts, scrolling through dynamic content, targeting specific HTML elements, and downloading images to a local directory. Gain practical skills in web automation and data extraction, enabling you to adapt the code for future changes in Facebook's structure.

Syllabus

- 2:23 intro
- Install Selenium
- Install Wget
- Download Chrome Driver
- Launch Jupyter Notebook
- Imports and Intro
- Webdriver get command
- Developer Tools Guide
- Login: Username, Password, Submit
- Dismiss Alerts: Stackoverflow
- Shortcut to get Photo Gallery
- Loop over tagged and personal photos
- Scroll to the end of the page: Loop
- Target all anchor elements on the page
- Target specific anchor elements
- Target all image elements on the page
- Target a specific image element
- Create a new directory at the root
- Download all the photos
- Last Automation Step
- Run the bot
- Test the bot

Taught by

Python Simplified

Reviews

Start your review of Web Scraping Facebook with Selenium - Automated Bot

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.