-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbumbleBabes_Edge.py
45 lines (37 loc) · 1.43 KB
/
bumbleBabes_Edge.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
45
from selenium import webdriver
from selenium.webdriver.common.keys import Keys #
from selenium.common import exceptions
import time, datetime, os, random, sys
def print_same_line(text):
sys.stdout.write('\r')
sys.stdout.flush()
sys.stdout.write(text)
sys.stdout.flush()
class BumbleBot:
def __init__(self):
self.driver = webdriver.Edge("C:/Users/Ty Cooper/Desktop/Coding/Apps/instagram_auto/edgedriver.exe")
def closeBrowser(self):
self.driver.close()
def login(self):
driver = self.driver
driver.get("https://www.facebook.com/")
time.sleep(3)
driver.get('https://bumble.com/app')
def testing_luck(self):
driver = self.driver
feelings = random.randint(0,1)
read_profile = random.uniform(0.5, 3)
presentation = driver.find_element_by_xpath("//div[contains(@class, 'encounters-action encounters-action--like')]")
conceded = driver.find_element_by_xpath("//div[contains(@class, 'encounters-action encounters-action--dislike')]")
if feelings == 1:
time.sleep(read_profile)
presentation.click()
elif feelings == 0:
time.sleep(read_profile)
conceded.click()
myPassword = os.environ.get('facee_pass')
bumbleBabes = BumbleBot()
bumbleBabes.login()
time.sleep(20)
while True:
bumbleBabes.testing_luck()