示例#1
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = [
         'username', 'password', 'cookies', 'proxy', 'Timestamp'
     ]
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['VerifyEmail', 'BadPassword']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 1
     self.MaxRetry = 3
     self.ProxyEnable = True
     self.AuthProxy = True
     self.ProxyTimeout = 60
     self.SubMaxRetry = 2
     self.TaskName = 'Account View'
     self.TaskInfos = AccountTable
     for item in self.TaskInfos:
         item.update({'cookies': ''})
         item.update({
             'billingaddress':
             FinanceFrame.loc[item['username']].to_dict()
         })
         item.update({
             'shippingaddress':
             AddressFrame.loc[item['username']].to_dict()
         })
     pass
示例#2
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = [
         'username', 'password', 'cookies', 'proxy', 'Timestamp',
         'ordernumber', 'asins'
     ]
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = [
         'VerifyEmail', 'BadPassword', 'FixAddress', 'AddressNotMatch',
         'GiftCardUsed', 'BadGiftCard'
     ]
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 1
     self.MaxRetry = 0
     self.ProxyEnable = True
     self.AuthProxy = True
     self.ProxyTimeout = 60
     self.SubMaxRetry = 2
     self.TaskName = 'PlaceOrder_auto'
     self.TaskInfos = OrderTaskTable
     for item in self.TaskInfos:
         item.update({'cookies': ''})
         item.update(AccountFrame.loc[item['username']].to_dict())
         item.update({
             'billingaddress':
             FinanceFrame.loc[item['username']].to_dict()
         })
         item.update({
             'shippingaddress':
             AddressFrame.loc[item['username']].to_dict()
         })
     pass
示例#3
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = ['username', 'password', 'cookies', 'errorcode']
     self.ReportErrorInfo = ['retrynumber']
     self.FatalError = ['BadPassword', 'BadEmail']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 3
     self.MaxRetry = 3
     self.ProxyEnable = True
     self.TaskName = 'VerifyAccount'
     self.WalkaroundEn = True
     self.TaskInfos = parseinfo.AccountTable
示例#4
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = [
         'newemail', 'newpassword', 'newcookies', 'Timestamp', 'username'
     ]
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['BadPassword', 'BadEmail', 'VerifyEmail']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 1
     self.MaxRetry = 3
     self.ProxyEnable = False
     self.TaskName = 'ModifyAcount'
     self.TaskInfos = parseinfo.AccountTable
示例#5
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = ['asin', 'keyword', 'retrynumber', 'Timestamp']
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 1
     self.MaxRetry = 2000
     self.ProxyEnable = False
     self.speed = 12
     self.TaskName = 'CreatAcount'
     self.TaskLogEn = False
     self.TaskRetryEn = False
     self.TaskInfos = parseinfo.ViewTaskTable
示例#6
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = ['username', 'password', 'cookies', 'Timestamp']
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 4
     self.MaxRetry = 3
     self.ProxyEnable = True
     self.speed = 20
     self.LoadImage = False
     self.TaskName = 'CreatAcount'
     self.AcountNumber = 12
     self.TaskInfos = []
     for i in range(self.AcountNumber):
         self.TaskInfos.append({'AounctID': str(i)})
示例#7
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = [
         'username', 'password', 'cookies', 'proxy', 'Timestamp'
     ]
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['VerifyEmail', 'BadPassword']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 1
     self.MaxRetry = 3
     self.ProxyEnable = True
     self.AuthProxy = True
     self.ProxyTimeout = 60
     self.SubMaxRetry = 2
     self.TaskName = 'Account View'
     self.TaskInfos = AccountTable
示例#8
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = ['Timestamp', 'username', 'asins']
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = [
         'VerifyEmail', 'FixAddress', 'AddressNotMatch', 'GiftCardUsed',
         'BadGiftCard'
     ]
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 5
     self.MaxRetry = 5
     self.ProxyEnable = True
     self.TaskName = 'PrepareOrder'
     self.TaskInfos = parseinfo.OrderTaskTable
     for item in self.TaskInfos:
         item.update(parseinfo.AccountFrame.loc[item['username']].to_dict())
         item.update(parseinfo.AddressFrame.loc[item['username']].to_dict())
示例#9
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = [
         'username', 'password', 'cookies', 'fullname', 'address',
         'postalcode', 'city', 'state', 'phonenumber'
     ]
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['BadPassword', 'BadEmail', 'InsufficientAddress']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 5
     self.MaxRetry = 3
     self.ProxyEnable = True
     self.TaskName = 'FillShippingAddress'
     self.TaskInfos = parseinfo.AccountTable
     self.AddressList = []
     for name, item in parseinfo.AddressFrame.iterrows():
         self.AddressList.append(item.to_dict())
     pass
示例#10
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = [
         'username', 'password', 'cookies', 'nameoncard', 'ccnumber',
         'ccmonth', 'ccyear', 'checkaccount'
     ]
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['BadPassword', 'BadEmail', 'InsufficientCard']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 5
     self.MaxRetry = 3
     self.ProxyEnable = True
     self.TaskName = 'FillCreditCard'
     self.TaskInfos = parseinfo.AccountTable
     self.CreditCardList = []
     for name, item in parseinfo.FinanceFrame.iterrows():
         self.CreditCardList.append(item.to_dict())
     pass
示例#11
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = [
         'asin', 'department', 'buyboxprice', 'orderprice', 'keyword',
         'brand', 'Timestamp'
     ]
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 5
     self.MaxRetry = 3
     self.ProxyEnable = False
     self.TaskName = 'TestSearch'
     self.TaskInfos = []
     parseinfo.ProductFrame.reset_index(inplace=True)
     for i in range(parseinfo.ProductFrame.shape[0]):
         ProductInfo = parseinfo.ProductFrame.loc[i]
         ProductInfo.dropna(inplace=True)
         self.TaskInfos.append(ProductInfo.to_dict())
示例#12
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = [
         'username', 'password', 'cookies', 'asin', 'reviewstar',
         'reviewertitle', 'reviewercontent', 'Timestamp'
     ]
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['BadPassword', 'BadEmail']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 5
     self.MaxRetry = 5
     self.LoadImage = False
     self.ProxyEnable = True
     self.ProxyTimeout = 60
     self.TaskName = 'SubmitReviewer'
     self.submitedUser = []
     self.TaskInfos = []
     for name, item in ReviewerFrame.iterrows():
         self.TaskInfos.append(item.to_dict())
     pass
示例#13
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = ['username', 'password', 'customername', 'cookies', 'proxy', 'asin', 'Timestamp']
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['BadPassword', 'BadEmail']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 1
     self.MaxRetry = 2
     self.LoadImage = False
     self.ProxyEnable = True
     self.AuthProxy = True
     self.ProxyTimeout = 60
     self.TaskName = 'SubmitReviewer'
     self.submitedUser = []
     self.TaskInfos = []
     for name, item in ReviewerFrame.iterrows():
         dict_item = AccountFrame.loc[item['username']].to_dict()
         dict_item.update(item.to_dict())
         self.TaskInfos.append(dict_item)
     pass
示例#14
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = [
         'Timestamp', 'department', 'asin', 'keyword', 'lowprice',
         'highprice', 'buyboxprice', 'country', 'taskid'
     ]
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['OverDay']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 2
     self.MaxRetry = 3
     self.AuthProxy = False
     self.ProxyEnable = True
     self.ProxyTimeout = 60
     self.day_date = datetime.now().day
     self.TaskName = 'ViewTask'
     self.TaskSummury = ProductTable
     self.TaskInfos = []
     for item in ProductTable:
         for i in range(int(item['sections'])):
             TaskInfo = {'taskid': i}
             TaskInfo.update(item)
             keywordSelect = [
                 'Keywords1', 'Keywords2', 'Keywords3', 'Keywords4',
                 'Keywords5', 'Keywords6', 'Keywords7', 'Keywords8',
                 'Keywords9', 'Keywords10'
             ]
             keywordGoup = []
             for key in keywordSelect:
                 if key in item:
                     if item[key]:
                         keywordGoup.append(item[key])
             random.shuffle(keywordGoup)
             TaskInfo.update({'keyword': keywordGoup[0]})
             self.TaskInfos.append(TaskInfo)
     random.shuffle(self.TaskInfos)
     pass
示例#15
0
 def __init__(self):
     TaskManager.__init__(self)
     self.ReportInfo = [
         'reviewerid', 'asin', 'reviewstar', 'reviewertitle',
         'reviewercontent', 'reviewerusername', 'Timestamp'
     ]
     self.ReportErrorInfo = ['errorcode', 'retrynumber']
     self.FatalError = ['BadPassword', 'BadEmail', 'VerifyEmail']
     self.TaskSync = False
     self.CodeLogEn(False)
     self.ThreadNumber = 5
     self.MaxRetry = 3
     self.ProxyEnable = True
     self.TaskName = 'SubmitReview'
     self.LoadImage = False
     self.TaskLogEn = False
     self.TaskRetryEn = False
     self.TaskInfos = parseinfo.OrderTaskTable
     for item in self.TaskInfos:
         item.update(parseinfo.AccountFrame.loc[item['username']].to_dict())
     self.ReviewList = []
     for name, item in parseinfo.ReviewerFrame.iterrows():
         self.ReviewList.append(item.to_dict())
     pass