Skip to content

Commit 0d1ae53

Browse files
To stay online
1 parent 92f4665 commit 0d1ae53

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed

Fiverr Bot/automated_task.py

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Fiverr Link
2+
seller_dashboard = "https://www.fiverr.com/users/khizranmohsin/seller_dashboard"
3+
inbox_page = "https://www.fiverr.com/inbox"
4+
5+
# Random Waiting Timehttps://www.fiverr.com/users/akifofficial/seller_dashboard
6+
waiting_time_start_range = 120 #in seconds
7+
waiting_time_end_range = 300 #in seconds
8+
9+
import pyautogui
10+
import time
11+
import random
12+
import datetime
13+
14+
# Type something on SearchBar
15+
def type_in_search_bar(address):
16+
print("Typing in Search Bar\n")
17+
pyautogui.moveTo(x=556, y=89)
18+
pyautogui.click()
19+
time.sleep(2)
20+
pyautogui.write(address)
21+
time.sleep(2)
22+
pyautogui.press('enter')
23+
time.sleep(5)
24+
25+
def reload():
26+
print("Reloading\n")
27+
xx = random.randint(0,waiting_time_start_range)
28+
yy = random.randint(xx,waiting_time_end_range)
29+
waiting_time = random.randint(xx,yy)
30+
31+
pyautogui.moveTo(x=88,y=86)
32+
pyautogui.click()
33+
34+
time.sleep(waiting_time)
35+
36+
37+
def drag_mouse():
38+
print("Dragging\n")
39+
xx = random.randint(0,waiting_time_start_range)
40+
yy = random.randint(xx,waiting_time_end_range)
41+
waiting_time = random.randint(xx,yy)
42+
43+
x_pos = random.randint(0,800)
44+
y_pos = random.randint(0,800)
45+
pyautogui.moveTo(x_pos,y_pos)
46+
time.sleep(waiting_time)
47+
pyautogui.scroll(-20)
48+
time.sleep(waiting_time)
49+
pyautogui.scroll(20)
50+
51+
52+
def action():
53+
54+
55+
# waiting_time_start_range = int(input("Enter Lower Limit of Waiting Time : "))
56+
# waiting_time_end_range = int(input("Enter Upper Limit of Waiting Time : "))
57+
58+
print("Fiverr BOT is ready for action. Waiting 5 second for screen positioning")
59+
60+
61+
time.sleep(5)
62+
count = 1
63+
while(True):
64+
with open("fiver_bot_log.txt","a") as f:
65+
type_in_search_bar(seller_dashboard)
66+
print(f"{count}.{datetime.datetime.now()} Typed in Search Bar - Seller Dashboard\n")
67+
f.write(f"{count}.{datetime.datetime.now()} Typed in Search Bar - Seller Dashboard\n")
68+
count+=1
69+
70+
reload()
71+
72+
f.write(f"{count}.{datetime.datetime.now()} Reloaded Seller Board\n")
73+
count+=1
74+
75+
for i in range (0,10):
76+
drag_mouse()
77+
f.write(f"{count}.{datetime.datetime.now()} Dragged Mouse\n")
78+
count+=1
79+
80+
type_in_search_bar(inbox_page)
81+
82+
f.write(f"{count}.{datetime.datetime.now()} Typed in Search Bar - Inbox\n")
83+
count+=1
84+
85+
reload()
86+
f.write(f"{count}.{datetime.datetime.now()} Reloaded Seller Board\n")
87+
count+=1
88+
f.close()
89+
90+
action()

Fiverr Bot/fiver_bot_log.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
1.2023-01-13 16:31:13.383794 Typed in Search Bar - Seller Dashboard
2+
2.2023-01-13 16:31:37.617223 Reloaded Seller Board
3+
1.2023-07-15 17:23:13.376376 Typed in Search Bar - Seller Dashboard
4+
1.2023-07-15 17:24:22.093125 Typed in Search Bar - Seller Dashboard
5+
1.2023-07-15 17:25:04.195849 Typed in Search Bar - Seller Dashboard
6+
2.2023-07-15 17:29:01.444283 Reloaded Seller Board
7+
3.2023-07-15 17:33:35.779364 Dragged Mouse
8+
4.2023-07-15 17:37:34.154869 Dragged Mouse
9+
5.2023-07-15 17:37:50.502308 Dragged Mouse

0 commit comments

Comments
 (0)