Skip to content

Smey09/Bot-Sent-Messenger-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Bot-Sent-Messenger-using-Python

How to install and run this code:

Prerequisite: Make sure you have Python installed on your device.

Step 1

Download this code.

Step 2

Open your code editor (VS Code, PyCharm, etc.).

Step 3

Set up the code for your environment:

  1. Open a terminal or command prompt.
  2. Install required libraries:
    pip install webdriver
    pip install selenium
        
    (If you encounter "zsh: command not found: pip", try to run:)
    pip3 install webdriver
    pip3 install selenium
        

Step 4

Update your information:

  1. In the FacebookAccountInfo.py file:
    • Enter your Gmail and Facebook password:
      # input your email
      username = 'YourGmail@gmail.com'
      # input your password
      password = 'YourFacebookPassword'
              
  2. In the MessengerBot_Optimized.py file:
    • On line 74, modify the message details:
      bot1.SendMessageTo('FriendName', 'MessageText', NumberOfMessages)
              
      • FriendName: Replace with your friend's name on Facebook.
      • MessageText: Replace with the text you want to send.
      • NumberOfMessages: Specify the number of messages to send.

Step 5

Run the code:

  1. Execute the code in your editor.(Run Code)
  2. If you see a notification, click "OK".
  3. How to fix this notification on macOS:
    1. Open Mac Setting.
    2. Go to 'Privacy & Security'.
    3. Scroll down and click "Allow Anyway".
    4. Pro

About

Here! this is my code Python that I study at university and researching...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages