-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfbcomment.py
44 lines (35 loc) · 1.12 KB
/
fbcomment.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
41
42
43
44
import pyautogui as pg
import time
import random
"""
fbcomment.py ver. 20.09.26 by mariafshan
This program automatically tag people on Facebook. Please don't use this program to spam people, I wrote this primarily
to ease my workload at managing Facebook communities.
HOW TO USE:
1. Input the text file containing the list of names separated by \n
2. Click the textbox you would like to write comment in
Auto Comment On Any Facebook Post With Just 10 Lines Of Python Script (Unlimited)
https://www.youtube.com/watch?v=yokcJBSMySQ
"""
def main():
# Click the textbox you would like to write comment in
time.sleep(2)
names = []
# tag people
filename = input()
with open(filename) as file:
for line in file:
line = line.rsplit("\n")
names.append(line[0])
# pg.typewrite("@" + names[0])
# for i in range(1):
# pg.typewrite("@" + names[i])
for name in names:
seconds = random.randint(1, 5)
pg.typewrite("@" + name + " ")
time.sleep(seconds)
pg.typewrite("\n" + " ")
file.close()
return
if __name__ == '__main__':
main()