├── LICENSE ├── README.md └── f.py /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Yashu_Krish11 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Facebook-account-auto-report 2 | Facebook account auto report bot with selenium with python 3 | 4 | # Please replace the 18th and 20th lines with your email/phone number and password. Additionally, 5 | 6 | # in the 24th line, please provide the profile copy URL of the person you want to report. 7 | 8 | To begin, please download the latest version of Chrome Driver from https://chromedriver.chromium.org/. Next, extract the file and place it in the designated folder. 9 | 10 | Then, open the command prompt in that folder and enter "f.py" or double-click on the "f.py" file to run it. Alternatively, you can rename the file and run it. 11 | 12 | # when facebook updated the some code changes if these not run means use below repos.. 13 | 14 | https://github.com/ShadowHackrs/FB-auto-report 15 | 16 | https://github.com/orangmuda/faceports 17 | 18 | 👉Note:- 19 | 20 | 👉if your selenium version is in latest version then the code never run 21 | 22 | 👉cmd and enter pip uninstall selenium 23 | 24 | And enter 25 | 26 | pip install selenium==4.2.0 27 | 28 | and hit enter 29 | 30 | and 31 | 32 | python -c "import selenium; print(selenium.version)" 33 | 34 | These Project Is Only For Reference Use Dont Use In large Scale. 35 | 36 | 𝙏𝙝𝙞𝙨 𝙞𝙣𝙛𝙤𝙧𝙢𝙖𝙩𝙞𝙤𝙣 𝙞𝙨 𝙤𝙣𝙡𝙮 𝙛𝙤𝙧 𝙚𝙙𝙪𝙘𝙖𝙩𝙞𝙤𝙣al 𝙥𝙪𝙧𝙥𝙤𝙨𝙚 𝙖𝙣𝙙 𝙬𝙚 𝙖𝙧𝙚 𝙣𝙤𝙩 𝙧𝙚𝙨𝙥𝙤𝙣𝙨𝙞𝙗𝙡𝙚 𝙛𝙤𝙧 𝙖𝙣𝙮 𝙠𝙞𝙣𝙙 𝙤𝙛 𝙞𝙡𝙡𝙚𝙜𝙖𝙡 𝙖𝙘𝙩𝙞𝙫𝙞𝙩𝙮 𝙙𝙤𝙣𝙚 𝙗𝙮 𝙩𝙝𝙞𝙨 𝙩𝙤𝙤𝙡. 37 | -------------------------------------------------------------------------------- /f.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | from selenium.webdriver.support.ui import Select 3 | from selenium.webdriver.common.keys import Keys 4 | from selenium.webdriver.common.by import By 5 | from selenium.webdriver.chrome.options import Options 6 | from selenium.webdriver.support.ui import WebDriverWait 7 | from selenium.webdriver.support import expected_conditions as EC 8 | import random 9 | import time 10 | 11 | chrome_options = webdriver.ChromeOptions() 12 | prefs = {"profile.default_content_setting_values.notifications" : 2} 13 | chrome_options.add_experimental_option("prefs",prefs) 14 | driver = webdriver.Chrome(chrome_options=chrome_options) 15 | driver.get("https://www.facebook.com/") 16 | 17 | time.sleep(4) 18 | driver.find_element_by_id("email").send_keys('9898989898') #replace with your email or phone number 19 | time.sleep(2) 20 | driver.find_element_by_id("pass").send_keys('pass123$%') #replace with your password 21 | time.sleep(2) 22 | driver.find_element_by_name("login").click() 23 | time.sleep(4) 24 | driver.get('https://www.facebook.com/profile.php?id=100089108025261') #replace with account url or that account which you want to report it. 25 | time.sleep(4) 26 | driver.find_element_by_xpath('/html/body/div[1]/div[1]/div[1]/div/div[3]/div/div/div/div[1]/div[1]/div/div/div[3]/div/div/div/div[2]/div/div/div/div[1]').click()#three dots 27 | time.sleep(3) 28 | driver.find_element_by_xpath('/html/body/div[1]/div[1]/div[1]/div/div[3]/div/div/div/div[2]/div/div/div[1]/div[1]/div/div/div[1]/div/div[1]/div/div[1]/div/div[2]').click()#find or report 29 | time.sleep(3) 30 | driver.find_element_by_xpath('/html/body/div[1]/div[1]/div[1]/div/div[4]/div/div/div[2]/div/div/div[1]/div/div[2]/div/div/div/div[3]/div/div[2]/div/div/div[1]/div/div/div/div[1]/div/div[1]/div/div/div/div/span').click()#report option 31 | time.sleep(3) 32 | driver.find_element_by_xpath('/html/body/div[1]/div[1]/div[1]/div/div[4]/div/div/div[2]/div/div/div[1]/div/div[2]/div/div/div/div[4]/div/div[2]/div/div/div[1]/div/div/div/div[1]/div/div[1]/div/div/div/div/span').click()#me 33 | time.sleep(3) 34 | driver.find_element_by_xpath('/html/body/div[1]/div[1]/div[1]/div/div[4]/div/div/div[2]/div/div/div[1]/div/div[2]/div/div/div/div[4]/div/div/div[4]/div/div').click()#submit 35 | time.sleep(3) 36 | driver.find_element_by_xpath('/html/body/div[1]/div[1]/div[1]/div/div[4]/div/div/div[2]/div/div/div[1]/div/div[2]/div/div/div/div[2]/div[2]/div/div').click()#next button 37 | time.sleep(3) 38 | driver.find_element_by_xpath('/html/body/div[1]/div[1]/div[1]/div/div[4]/div/div/div[2]/div/div/div[1]/div/div[2]/div/div/div/div[5]/div[2]/div/div/div/div').click() #done 39 | time.sleep(30) 40 | 41 | --------------------------------------------------------------------------------