Welcome folks today in this post we will be building a facebook autoliker
bot script in pyautogui
using python. All the full source code of the application will be given below.
Get Started
In order to get started you need to install the following library using the pip
command as shown below
pip install pyautogui
And then make an app.py
file and copy paste the following code
app.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
import time import pyautogui ''' pyautogui.hotkey('alt','tab') time.sleep(2) x1 = 224 y1 = 499 m =258 cnt = 0 for l in range(0,20): for z in range(0,4): pyautogui.moveTo(x1,y1) time.sleep(0.5) x1 += 210 x1 = 224 pyautogui.moveTo(x1,y1) time.sleep(0.8) pyautogui.scroll(-m) cnt += 1 if cnt == 2: m -= 4 cnt = 0 #pyautogui.scroll(-760) # 760 scroll difference b/w 1st and 4th image line distance ''' pyautogui.hotkey('alt', 'tab') for z in range(0,100): time.sleep(0.2) if (pyautogui.locateOnScreen('newlikeButton.png')) != None: pyautogui.press('l') pyautogui.press('right') time.sleep(0.2) ''' <a aria-pressed="false" class="UFILikeLink _4x9- _4x9_ _48-k" data-testid="fb-ufi-likelink" href="#" role="button" tabindex="-1"><!-- react-text: 8 -->Like<!-- /react-text --></a> ''' |
Now if you execute this script
by typing the below command
python app.py
And then it will auto
like all the facebook posts
DOWNLOAD SOURCE CODE