|
| 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() |
0 commit comments