-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
31 lines (25 loc) · 748 Bytes
/
run.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
from user import u, p
from base import fbBot
from infos import ph4s
if __name__=='__main__':
# tag facebook bot
fb = fbBot(user=u)
# start up driver, keep window large
fb.start_driver(minimize=False)
# log in to fb
fb.login(password=p)
# load ph4s page
fb.load_page(url=ph4s)
# write status
status = f'Hello,\nWorld!\nhttp://bit.ly/2kcA60f '
fb.write_post(text=status, link=True)
# expand post customization options
fb.expand_post_options()
# add feeling
fb.add_feeling(general='looking for', specific='a house')
# add location
fb.add_location('Pleasanton, Ca')
# post status
fb.share_post()
# close up shop
fb.close_browser(test=True)