Course Curriculum

Master Social Media Automation with Python

5sections
50lectures
5h 32mtotal

What you’ll learn

  • Automate Facebook pages and groups (text, image, links, videos)

  • Send and schedule WhatsApp messages (including images and groups)

  • Automate personalized email sending with attachments and scheduling

  • Extract data and upload to YouTube using the YouTube Data API

  • Build advanced Telegram bots using python-telegram-bot and Telegram API

  • Deploy your Telegram bot for free using IBM Cloud

  • Use challenges and real examples to solidify your knowledge

01

Automating Facebook: Basics and Techniques

  • Introduction to the course

    Learn to automate social media tasks with Python, including posting to Facebook pages and groups, sending WhatsApp messages, scheduling emails with attachments, and building a deployable Telegram bot.

    2:42
  • 1. generating access token

    Install the Facebook SDK and generate an access token by creating a Facebook app, selecting permissions, and using the graph API explorer to manage page tokens.

    8:17
  • post on facebook page

    Import the Facebook module, set the access token, create a Facebook object via the graph API, and post a message to your page with put object, then verify the post.

    3:28
  • 3. posting image on facebook page

    Learn how to post an image to a Facebook page using Python, including retrieving page and post IDs, using the put photo function, and adding a caption.

    3:42
  • 4. puting a comment in a post

    Learn to post a comment on a Facebook post with Python by using the post id, the comments connection, and a message, then verify the returned comment id.

    3:03
  • 5. like and delete a post on facebook page

    Learn how to like and delete a post on a Facebook page using Python automation, verifying success and handling post IDs with a Facebook object.

    4:01
  • 6. uploading youtube links on facebook page

    Learn to read a YouTube csv with pandas and post each video title and link to a Facebook page using the Facebook API, handling access token expiration.

    9:04
  • 7. uplouding video link on facebook groups part one

    Learn to automate posting to Facebook groups using Python and Selenium, managing group links, messages, video links, and optional thumbnail images with WebDriver Manager.

    10:39
  • 8. uplouding video link on facebook groups part two

    Log in to Facebook and automate posting by configuring chrome options, user data location, binary location, and driver executable path to open Facebook and post the video link.

    5:17
  • 9. uplouding video link on facebook groups part three

    Learn to automate posting in Facebook groups using Python and Selenium by iterating over group links, uploading photos, entering messages, and scheduling posts with timed waits.

    6:48
02

WhatsApp Automation with Python

  • 1. setting up the invironmebt

    Learn to set up your environment for automating WhatsApp with Python using Jupyter Notebook. Install Python, IPython, and Notebook via pip, launch and run code cells with shift-enter or alt-enter.

    4:13
  • 2. send a text message on whatsapp

    Set up a Jupyter notebook, install Pyewacket, connect WhatsApp web via QR code to automate sending a message by entering the phone, message, and time.

    8:42
  • 3. closing the whatsapp tab

    Configure python-driven whatsapp automation by setting dynamic wait times, opening and closing the whatsapp tab, and ensuring message delivery within user-defined delays.

    5:28
  • 4. send an image to whatsapp

    Master how to send an image to a specific WhatsApp contact using Python and Pyewacket, including entering a phone number, selecting an image path, and sending to a WhatsApp group.

    4:49
  • 5. send text message to whatsapp group

    Learn to send a text message to a WhatsApp group using a Python library, including creating the group, obtaining its id, and delivering a timed message to that group.

    4:31
  • 6. send an image to whatsapp group

    Learn how to send an image to a WhatsApp group using a group ID, with a caption, by running Python code in a notebook to automate messaging.

    4:26
03

Email Automation Using Python

  • 1. creating new password for email automation

    Learn to set up an app password for email automation by generating a Google app password, securely using it in your development environment and scripts.

    2:10
  • 2. sending text email to a person

    Send a text email in Python using smtplib and MIME multipart. Log in to Gmail on port 587 with TLS and compose from, to, subject, and message, with user input.

    11:30
  • 3. sending files using email

    Learn to send a PDF file via email with Python by attaching it in binary mode, naming it, and sending a text message with a subject.

    4:42
  • 4. schedule printing a text

    Master scheduling tasks in Python with the schedule library: import schedule and time, define a function, use schedule.every(...).do, and run pending with run_pending and time.sleep to automate emails.

    6:12
  • 5. schedule sending email

    Learn to schedule email sending in Python using the schedule module, with a send_email function, a loop, and time.sleep to repeatedly dispatch messages.

    7:31
04

YouTube Automation: Uploads and Management

  • 1. getting api key and channel ID

    Install the python-youtube library with pip, enable the YouTube data API, and generate your API key and channel ID to automate your YouTube channel.

    5:19
  • 2. getting information of the channel

    Use the channel id and api key to fetch channel info, obtaining a dictionary with statistics like view count, subscribers, video count, and keywords such as JavaScript, PHP, CSS, HTML.

    4:13
  • 3. getting some specific information from youtube channel

    Learn to extract specific YouTube channel data, including channel name, view count, description, subscriber count, custom URL, and video count, using channel info, snippet, and statistics.

    7:16
  • 4. getting playlist information and videos

    Learn to fetch YouTube playlist information with the API, extract playlist names and total videos, access videos by ID, and loop through playlists to prepare links and descriptions for automation.

    12:47
  • 5. getting video information

    Learn to fetch video details from a playlist using API calls, extract the video ID from the resource ID, and retrieve the full video information as a dictionary.

    9:52
  • 6. getting specific information from videos

    Retrieve video details by id using the video by id API. Access the snippet for the title and description and capture view, like, and comment counts to automate channel workflows.

    6:38
  • 7. challenge exporting youtube channel data

    Build a program to export YouTube channel data—video title, view count, like count, comment count, and link—and organize it into a chart for future Facebook post automation.

    3:40
  • 8. solving challenge part one

    Learn to fetch all video links from YouTube playlists via an API, collect total links, and export video IDs and links using pandas.

    12:09
  • 9. solving challenge part two

    Test and refine a python workflow that uses api calls, pandas data frames, and csv export to collect video titles, view counts, likes, comments, and links, validate and save results.

    13:08
05

Advanced Telegram Automation & Bot Development

  • 1. introduction to python telegram bot

    Learn to build a python telegram bot by installing python-telegram-bot, setting up a virtual environment, generating a requirements.txt with pip freeze, and creating your bot with BotFather.

    6:08
  • 2. create your first telegram bot

    Create a new Telegram bot, name it, set a unique username ending with bot, and copy the API key; add a description and about text, then begin implementing bot functionality.

    4:55
  • 3. start your telegram bot need edits

    Learn to set up a python telegram bot, import telegram extensions, configure updater and dispatcher, and implement a start command that greets users, then run and test the bot.

    8:56
  • 4. add more functionality to your telegram bot

    Enhance your Python Telegram bot by importing command handler, configuring updater and dispatcher with your API key, creating a start function, and wiring a start command to reply messages.

    7:34
  • 5. add button to telegram bot

    Learn to enhance a telegram bot by adding a reply keyboard with Python and JavaScript buttons, resize options, and one-time keyboard behavior.

    11:18
  • 6. adding favor button and customizing buttons

    add a favor button to a python telegram bot by building an inline keyboard with links, and customize button layouts to navigate to pages or channels.

    10:17
  • 7.1. telegram api introduction

    Explore how to use the Telegram bot API with Python requests, obtain an API key, construct the bot URL, and fetch updates to send and receive messages.

    5:51
  • 7.2. geting informatio message information form group

    Learn to fetch and limit group messages via JSON, using update IDs and offsets to retrieve specific messages and text like 'start' and 'services'.

    5:33
  • 7.3.limit getting message information from group

    Learn to limit message retrieval from a group by constructing a base URL with offset and limit parameters and fetching a subset via a GET request.

    3:48
  • 7.4. send text message to group

    Learn to send a text message to a group using a chat ID, identifying group IDs by a leading dash and using the text parameter in the send message call.

    2:52
  • 7.5. sending questions from a list to group

    Learn to send multiple questions from a list to a Telegram group using a bot, scheduling each message with a loop and time.sleep to automate delivery.

    4:45
  • 7.6.seding images to a group

    Set up sending images from a URL list. Use a for loop to send multiple photos with captions, and test using internet sources before switching to local files.

    3:58
  • 7.7. seding image from local_computer to a group

    Send an image from a local computer to a group using Python by opening a file in binary mode, building a photo list, and sending it with an optional caption.

    3:05
  • 7.8.seding audio to a group

    Learn to send audio to a group using python: attach local audio files, adjust the port to send audio, and optionally share audio via a web link.

    3:18
  • 7.9.sending document to a group

    Learn how to send a document to a group using a Python Telegram bot, covering csv and txt files, and the required read-as-binary mode.

    2:41
  • 7.10. reply to text message

    Explore reading Telegram messages and replying to text, using read message and send message functions, handling updates, offsets, and chat IDs.

    11:44
  • 7.11.reading and replying new message

    Learn to automate reading and replying to new messages with a dynamic offset, build a send message function, and manage responses in python.

    11:05
  • 7.12. making the bot more intelligint

    Enhance the bot's intelligence by loading a 10,000 question‑and‑answer dataset, using pandas to read a tab separated values file, mapping questions to answers via a base URL and request flow.

    13:31
  • 7.13.metion the text while replying

    Learn to automate replies to text messages by capturing each message's unique id, sending a reply to that message id, and including the full text in the response.

    4:39
  • 7.14. uploading the bot in IBM cloud for free

    Learn how to deploy a Telegram bot to IBM Cloud for free, configuring actions and periodic triggers with cron to run 24/7.

    9:26