PokeMaster69 is an automated tool designed to streamline the process of poking people on Facebook. By leveraging Selenium WebDriver, it simulates user interactions to poke back those who poked the user and initiate pokes with new people. It provides a convenient way to engage in this casual form of interaction on the platform.
-
Python Environment Setup:
- Ensure you have Python installed on your system.
-
Install Required Packages:
- Run
pip install selenium tqdm webdriver_manager
to install necessary packages.
- Run
-
Download WebDriver:
- Ensure you have the appropriate WebDriver for your browser installed or installed automatically. This script uses Firefox, and it manages the WebDriver automatically using
GeckoDriverManager
fromwebdriver_manager
.
- Ensure you have the appropriate WebDriver for your browser installed or installed automatically. This script uses Firefox, and it manages the WebDriver automatically using
-
Facebook Credentials:
- Provide your Facebook username and password in the script or store them in a secure file. Update the
username
variable and provide the path to your credentials file in thewith open()
statement. Alternatively, insert the password directly.
- Provide your Facebook username and password in the script or store them in a secure file. Update the
-
Initialize PokeMaster69:
- Create an instance of the
PokeMaster69
class by providing your Facebook username, password, and optionally the browser type.
- Create an instance of the
-
Login to Facebook:
- Use the
login()
method to log in to your Facebook account.
- Use the
-
Start Poking:
- Use the
poke()
method to start the poking process. You can specify the number of new people to poke as an argument.
- Use the
Here's an overview of its functionalities:
-
Using Marionette:
- Upon initialization, the script sets up a WebDriver instance (Firefox) using Selenium in a marionette port that always stays logged in. It also provides a welcome message.
-
Logging In:
- The
login()
method navigates to Facebook's login page and enters the provided username and password. After logging in, it waits for a few seconds before proceeding.
- The
-
Poking People:
- The
poke()
method navigates to the user's poke page on Facebook. - It then iterates through the list of people who poked the user back and pokes them back in return. It displays the number of people poked back.
- Next, it iterates through a specified number of new people to poke and pokes them. It scrolls the page to ensure all elements are visible.
- After poking, it reloads the poke page and repeats the process.
- The
-
Highlighting Elements:
- The
highlight_element()
method is used to visually highlight elements on the page. It's primarily used to highlight people being poked.
- The
-
Dynamic Waiting Functionality:
- The
wait()
function is used to create a loading indicator while waiting for a certain duration. It uses tqdm for a progress bar.
- The