Exemple #1
0
 def run(self):
     profile, proxy = get_profile(self.profile), get_proxy(self.proxies)
     if profile is None:
         self.status_signal.emit({
             "msg": "Invalid profile",
             "status": "error"
         })
         return
     if proxy is None:
         self.status_signal.emit({
             "msg": "Invalid proxy list",
             "status": "error"
         })
         return
     if self.site == "Walmart":
         Walmart(self.task_id, self.status_signal, self.image_signal,
                 self.wait_poll_signal, self.wait_condition, self.product,
                 profile, proxy, self.monitor_delay, self.error_delay,
                 self.max_price)
     elif self.site == "Bestbuy":
         BestBuy(self.status_signal, self.image_signal, self.product,
                 profile, proxy, self.monitor_delay,
                 self.error_delay)  #TODO: Readd Discord Webhook
     elif self.site == "Target":
         Target(self.task_id, self.status_signal, self.image_signal,
                self.product, profile, proxy, self.monitor_delay,
                self.error_delay)
     elif self.site == "GameStop":
         GameStop(self.task_id, self.status_signal, self.image_signal,
                  self.product, profile, proxy, self.monitor_delay,
                  self.error_delay, self.max_price)
Exemple #2
0
 def run(self):
     profile, proxy = get_profile(self.profile), get_proxy(self.proxies)
     if profile == None:
         self.status_signal.emit({
             "msg": "Invalid profile",
             "status": "error"
         })
         return
     if proxy == None:
         self.status_signal.emit({
             "msg": "Invalid proxy list",
             "status": "error"
         })
         return
     if self.site == "Walmart":
         Walmart(self.task_id, self.status_signal, self.image_signal,
                 self.product, profile, proxy, self.monitor_delay,
                 self.error_delay, self.max_price)
     elif self.site == "Bestbuy":
         BestBuy(self.task_id, self.status_signal, self.image_signal,
                 self.product, profile, proxy, self.monitor_delay,
                 self.error_delay)
     elif self.site == "Target":
         Target(self.task_id, self.status_signal, self.image_signal,
                self.product, profile, proxy, self.monitor_delay,
                self.error_delay)
Exemple #3
0
    def run(self):
        profile, proxy = get_profile(self.profile), get_proxy(self.proxies)
        if profile is None:
            self.status_signal.emit({
                "msg": "Invalid profile",
                "status": "error"
            })
            return
        if proxy is None:
            self.status_signal.emit({
                "msg": "Invalid proxy list",
                "status": "error"
            })
            return

        if self.site == "Bestbuy":
            BestBuy(self.status_signal, self.image_signal, self.product,
                    profile, proxy, self.monitor_delay, self.error_delay)