
Explore building Twitter bots with Python, Django, and Tweepy through a hands-on course that equips you for fun and business applications.
Set up your development environment for building Twitter bots with Python. Install a Python virtual environment, create the Bot Project folder, and install Visual Studio coordinator.
Install Python on Mac by downloading the latest stable release (Python 3.9.7) from python.org, running the installer, and following prompts like continue and agree; next video covers Visual Studio Code.
Install Visual Studio Code on Mac to enable rapid Python development, following a download, unzip, and open workflow, with guidance on verifying Python setup in the next video.
Learn to verify the installed Python version on your machine using the terminal, and get ready to install a virtual environment in the next video.
Learn how to install and use a Python 3 virtual environment on Mac to isolate project libraries and avoid conflicts, and prepare for installing Django.
Download latest Python 3.9.x for Windows from python.org and run the installer. Enable 'install launcher for all users' and 'add Python 3.9 to PATH', then install an integrated development environment.
Install and activate a virtual environment to manage Python packages for different projects, avoiding global installs and protecting your system; learn activation and usage in upcoming chapters.
Install Postgres on your machine, set up a database for a Django project, and learn to run the server and perform migrations with migration commands.
Install pip, verify its version, and install Django with Python -m pip install Django; confirm a successful installation, then proceed to create the Django project folder.
Create a Django project folder and set up a virtual environment inside it, preparing the Django Twitter project for development.
Activate the virtual environment, install Django inside it, verify the installation, and start a Django project to manage bots with manage.py commands.
Learn to create a Django superuser and run the Django project. Activate a virtual environment, migrate databases, start the server, and log in to the admin panel to manage users.
Switch Django from sqlite to Postgres by installing Postgres and pgAdmin, creating a database named alere bots, updating settings, installing psycopg2 2.8.6, and running makemigrations and migrate.
Learn how to create jungle models and install Python libraries, including the creepy library, to access the Twitter API with an easy to use Python library.
Create Django models to power a Twitter bot, including keyword, bad word, coordinates, outbound and inbound direct messages, and follower tracking; implement app setup, migrations, and admin population in Postgres.
Register models in the Django admin dashboard to expose them in the bots app. Use admin.site.register for each model, then run the server and add entries via admin forms.
Install and manage python libraries for django by using pip to install packages, save them to a requirements.txt with pip freeze, and install Tweepy for the Twitter API.
Learn to build Twitter bots with Python Django and Tweepy by creating lightweight automation, sending welcome messages to new followers, and storing direct messages in a Postgres database.
Learn how to apply for a Twitter developer account via the Twitter developer portal, verify your email, and select hobbyists before generating API keys to power Twitter bots.
Create a Twitter developer project, set up an app, and collect API key, API secret key, access token, and access token secrets to access the Twitter API.
Authenticate to the Twitter API with Tweepy by configuring API key, API key secrets, access token, and access token secrets, using a utils file and a dedicated authentication function.
Build a Django management command using Tweepy to stream and like tweets containing keywords, with bad words filtering, location filters, and extended tweet handling, all tied to database lookups.
Build a Django-based Twitter bot that retweets tweets matching keywords from a lookup table via Tweepy streaming, with authentication, error handling, and a management command to filter by location.
Execute a Django management command to send a welcome direct message to new Twitter followers by authenticating the API, retrieving the last follower id, and sending the outbound direct message.
Save inbound direct messages to your post database using a Django management command, connect to the Twitter API, and store messages with timestamp handling.
This course will equip you with skills in building twitter bots that will help you build a following on twitter for business or fun. You don't need any prior skills as I will take you through the process of creating twitter developer accounts, Installing python django framework, Installing tweepy library and using tweepy library to build bots on python django framework and postgresql database.
I will show you how to build a like tweets bot based on two filter parameters: Good keywords and bad keywords. If there is any good keyword in a tweet my bot will like the tweet and if a tweet will have both good keywords and bad keywords then it will skip liking the tweet. I will also take you through the retweet tweets bot that has the same behavior as the like tweet bot. You will also learn how to send a welcome message automatically to new followers. The bot will not send a welcome message to old followers. You will also learn how to download direct messages to your postgress database with the last bot that saves direct messages to postgresql.
Python is machine independent so you can use your windows, linux or mac machines to go through this course