Commit c44dd137 by liuxiaoxing

日常迭代

parent a6a1e5d6
......@@ -52,8 +52,8 @@ ry_adplan_name = 'c测试1'
ry_adcreative_name = 'c测试1'
# bytedance_int 今日头条,kuaishou_int 快手,tencentams_int (新)广点通,rryingxiao_int 人人营销
pid = 'rryingxiao_int'
URL = 'http://uri6.com/tkio/EB7fIza?noredirect=true&callback_param=B.vgcH5jYqoquzezEA'
# URL = 'http://52.80.137.106:8083/tkio/RnmYB3a?noredirect=true'
URL = 'http://uri6.com/tkio/aAvmI3a?noredirect=true'
# URL = 'http://52.80.137.106:8083/tkio/zuAnuqa?noredirect=true'
# 测试头条衍生事件回调时加上
# callback= http%3A%2F%2Fad.toutiao.com%2Ftrack%2Factivate%2F%3Fcallback%3DCKP4rs-Zn4QDEKiQ6teZn4QDGN6L8Y-h9Wcg3ovxj6H1ZyiE0PjgroSEAzAOOM_X-8IDQik0YWY1NzdlOC1lZmViLTRmZDEtYmZkZC00MzE1Zjc1MmJhMGF1NTQ5M0iA0pOtA1AAiAEAkAECmAEA%26os%3D0%26muid%3D
......@@ -115,6 +115,7 @@ for index in range(1):
# ip = '156.119.456.190'
try:
parms = {
# 'clickid':'223123211312',
'click_time': str(round(time.time() * 1000)),
# 'click_time': '1666271211',
......@@ -145,11 +146,11 @@ for index in range(1):
"ry_adgroup_id": ry_adgroup_id,
"ry_adplan_id": ry_adplan_id,
"ry_adcreative_id": ry_adcreative_id,
"project_id":proiect_id,
"advert_id":advert_id,
"project_name": proiect_name,
"advert_name": advert_name,
# # # # 账户id
# "project_id":proiect_id,
# "advert_id":advert_id,
# "project_name": proiect_name,
# "advert_name": advert_name,
# # # # # 账户id
"accountid": accountid,
# 'imei2': 'null',
# 'meid': i
......@@ -236,28 +237,28 @@ for index in range(1):
time.sleep(5)
try:
allEvent().registerEvent(i, ip, appkey)
except Exception as e:
print('注册_wrong:', w)
print(e)
time.sleep(4)
try:
allEvent().loginEvent(i, ip, appkey)
except Exception:
print('登录_wrong:', w)
time.sleep(3)
try:
allEvent().payEvent(i, ip, appkey)
except Exception as err:
print(err)
print('付费_wrong:', w)
time.sleep(3)
try:
allEvent().payorder(i, ip, appkey)
except Exception:
print('订单_wrong:', w)
# time.sleep(5)
# try:
# allEvent().registerEvent(i, ip, appkey)
# except Exception as e:
# print('注册_wrong:', w)
# print(e)
# time.sleep(4)
# try:
# allEvent().loginEvent(i, ip, appkey)
# except Exception:
# print('登录_wrong:', w)
# time.sleep(3)
# try:
# allEvent().payEvent(i, ip, appkey)
# except Exception as err:
# print(err)
# print('付费_wrong:', w)
# time.sleep(3)
# try:
# allEvent().payorder(i, ip, appkey)
# except Exception:
# print('订单_wrong:', w)
# time.sleep(3)
......@@ -305,7 +306,7 @@ for index in range(1):
#
# num = index + 1
# event = 'event_' + str(num)
# event = 'event_28'
# event = 'event_26'
# time.sleep(2)
# try:
# allEvent().ziding_event(i, ip, appkey, event)
......
......@@ -82,7 +82,7 @@ class allEvent:
"_imei": i,
# "_meid":i,
# "mobdna_info": "{\"mobdna_oid\":\"95820f88217ec8cbdf621919bb81c0a5\",\"mobdna_appkey\":\"16dc0cb882d3dbec4f7f66251a84d6dd\",\"mobdna_rdid\":\"96AD0BC02C70D0BA5C446C12580E3800\",\"mobdna_requestid\":\"463cfd5564d24d30a607a18a1e8ae2d8\"}",
'_oaid': i,
# '_oaid': i,
# "_rdid": '09DA91D0664C33DA7BEE7294CCCCCA07',
# 'ua': 'Mozilla/5.0 (Linux; U; Android 7.0; zh-CN; Nexus 5X Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/40.0.2214.89 UCBrowser/11.4.5.937 Mobile Safari/537.36',
# "idfa": i,
......@@ -273,13 +273,13 @@ class allEvent:
'context': {
# "_apptype": "wap",
'_deviceid': i,
'_imei': 'UNKNOWN',
'_imei': i,
"_meid": 'UNKNOWN',
# "_idfv": i,
# '_androidid':i,
'_androidid':i,
'_ip': IP,
'_timestamp': current_time_13,
'_oaid': i,
'_oaid': 'unknown',
"_lib_version": lv,
},
......@@ -448,7 +448,7 @@ class allEvent:
# "appType": "wx",
'appid': appkey,
'context': {
"_apptype": "quickApp",
# "_apptype": "quickApp",
# "_apptype": "wx",
'_deviceid': i,
'_imei': i,
......
......@@ -10,7 +10,7 @@ import hashlib
#安卓常规渠道激活
appkey = 'd58151cfff3f88b7fd3372fa5f596b44'
appkey = '16dc0cb882d3dbec4f7f66251a84d6dd'
# 线上预约app
# 7f64fbd64513bc74aa6b5bf753ae0953
# 16dc0cb882d3dbec4f7f66251a84d6dd
......@@ -30,7 +30,7 @@ appkey = 'd58151cfff3f88b7fd3372fa5f596b44'
# allEvent().payEvent(i, ip, appkey)
# print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
for index in range(1):
for index in range(3):
# 随机生成12为数组
s = ''.join(str(random.choice(range(10))) for _ in range(18))
p = ''.join(str(random.choice(range(10))) for _ in range(12))
......@@ -40,18 +40,19 @@ for index in range(1):
# p = '987654321234567'
# s = '2321321312h8ro321'
i = ''.join(str(random.choice(range(10))) for _ in range(12))
# i = '845743133230'
# i = ''.join(str(random.choice(range(10))) for _ in range(12))
i = '481217762786'
# i = '00000000-0000-0000-0000-000000000000'
# 随机生成ipXXXX XXCB489741-0029-4A35-8E38-D142F836B623
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
# ip = '109.64.182.29'
# 地域测试ip
# 60.13.148.23 新疆维吾尔自治区吐鲁番市
# 61.139.239.255 广西壮族自治区北海市
# 61.139.239.255 广西壮族自治区北
# 海市
# 119.60.0.0 宁夏回族自治区银川市
# start_time = time.time()
allEvent().installUpload(i, ip, appkey)
# allEvent().installUpload(i, ip, appkey)
# # print("time===>",(time.time()-start_time))
# # time.sleep(1)
# allEvent().startupEvent(i, ip, appkey)
......@@ -65,8 +66,8 @@ for index in range(1):
# time.sleep(1)
# num = index + 1
# event = 'event_' + str(num)
# # event = 'event_5'
# allEvent().ziding_event(i, ip, appkey, event)
event = 'event_26'
allEvent().ziding_event(i, ip, appkey, event)
# print(s)
# s = int(s) + 1
# time.sleep(3)
......
......@@ -8,18 +8,18 @@ import time
#向短链发送点击数据
#!!!!分包需要删掉https的s
URL = 'http://uri6.com/tkio/fUf6jua?noredirect=true'
# URL = 'http://52.80.137.106:8083/tkio/vEbMRba?noredirect=true'
# URL = 'http://uri6.com/tkio/fUf6jua?noredirect=true'
URL = 'http://52.80.137.106:8083/tkio/2yyEnua?noredirect=true'
appkey = '16dc0cb882d3dbec4f7f66251a84d6dd'
# event = 'invoke'
cmpaignid = '8888'
# 广告创意ID
ry_adcreative_id = '111'
ry_adcreative_id = 'B333'
# 广告组ID
ry_adgroup_id = '111'
ry_adgroup_id = 'B333'
# 广告计划ID
ry_adplan_id = '111'
ry_adplan_id = 'B333'
# 广告组名称
ry_adgroup_name = '广告组'
# 广告计划名称
......@@ -59,9 +59,9 @@ for index in range(1):
"ry_adgroup_id": ry_adgroup_id,
"ry_adplan_id": ry_adplan_id,
"ry_adcreative_id": ry_adcreative_id,
"project_id": '111',
"advert_id": '111',
"accountid": '111'
"project_id": 'B333',
"advert_id": 'B333',
"accountid": 'B333'
}
......
......@@ -745,7 +745,8 @@ def test_at27():
# 特殊渠道CAID传值处理
# --------------------------------特殊渠道CAID传值处理----------------------------
# Bilibili
def test_at28():
i = idfacode()
......@@ -875,6 +876,21 @@ def test_uccaid():
# [{"caid":"81bcddc91ea559bb711cfaf0b55cae53","version":"20211207"},{"caid":"0f1e07a50956d6af4a63c79106fa3e68","version":"20220111"}]
# taptap
def test_tapcaid():
i = idfacode()
ip1 = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
clickios.parms['idfa'] = i
clickios.parms['ip'] = ip1
clickios.parms['caid'] = '%5B%7B%22caid%22%3A%2237a6259cc0c1dae299a7866489dff0bd%22%2C%22version%22%3A%2220211207%22%7D%2C%7B%22caid%22%3A%222f1e07a50956d6af4a63c79106fa3e68%22%2C%22version%22%3A%2220220111%22%7D%5D'
clickios.send_requestandroid('')
print('点击')
print(i)
# 点击存储
def test_at30():
......
......@@ -32,8 +32,8 @@ parms = {
def send_requestandroid(hc):
# url1 = 'http://52.80.137.106:8083/tkio/F3QVrqa?noredirect=true' + hc
url1 = 'http://uri6.com/tkio/ayERVfa?noredirect=true' + hc
# url1 = 'http://52.80.137.106:8083/tkio/zyMRnea?noredirect=true' + hc
url1 = 'http://uri6.com/tkio/rUJ3uea?noredirect=true' + hc
response = requests.get(url=url1, params=parms, timeout=10, verify=False)
print(response.text)
print(url1)
......
......@@ -8,7 +8,7 @@ import hashlib
data = {
"what": "install",
"appid": "60763edf19602c0fa27b967c282fe805",
"appid": "0ecc232109dc25bfedff8aba06271539",
"context": {
"_deviceid": "",
"_idfa": "",
......@@ -42,9 +42,9 @@ data_temp = json.dumps(data)
def send_request():
global data
# 测试
# url = "http://52.80.137.106:8080/receive/tkio/install"
url = "http://52.80.137.106:8080/receive/tkio/install"
# 线上
url = "http://log.trackingio.com/receive/tkio/install"
# url = "http://log.trackingio.com/receive/tkio/install"
data['context']['install_time'] = int(round(time.time() * 1000))
print(data)
response = requests.request("POST", url, headers=headers, data=json.dumps(data))
......
......@@ -5,26 +5,26 @@ import random
import time
import requests
appkey = 'adaf8e594702fa369ada109fd49f4d5e'
appkey = '380292be6ea70e2d44ad466ad77c9d6d'
# cid
cid = '21029'
cid = '21059'
# surl
surl = 'BVjQf2a'
surl = 'BB7juya'
# URL = 'http://52.80.137.106:8083/tkio/Ur2MFra?noredirect=true&callback=www.baidu.com&request_id=111111&promoted_object_id=111'
URL = 'http://uri6.com/tkio/Ur2MFra?noredirect=true&callback=www.baidu.com&request_id=111111&promoted_object_id=111'
impressionid = ''.join(str(random.choice(range(10))) for _ in range(12))
requestid = ''.join(str(random.choice(range(10))) for _ in range(12))
s = 0
for index in range(1):
# 随机生成12为数组
i = ''.join(str(random.choice(range(10))) for _ in range(28))
# i = '2539452844786738942022514936'
# 随机生成ip
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
# 打开
allEvent().openxiaochengxu(i, ip, cid, surl, appkey, impressionid, requestid)
# for index in range(1):
# # 随机生成12为数组
# i = ''.join(str(random.choice(range(10))) for _ in range(28))
# # i = '2539452844786738942022514936'
# # 随机生成ip
# ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
#
# # 打开
# allEvent().openxiaochengxu(i, ip, cid, surl, appkey, impressionid, requestid)
# # # time.sleep(5)
# # # #pv
# # # allEvent().pviaochengxu(i,ip,cid,surl,appkey)
......@@ -42,67 +42,67 @@ for index in range(1):
# allEvent().eventchengxu(i,ip,cid,surl,appkey,event)
# for index in range(1):
# i = ''.join(str(random.choice(range(10))) for _ in range(28))
# # i = '1761453021140876860117396099'
#
#
# # print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
# # 随机生成12为数组
# # impressionid = ''.join(str(random.choice(range(10))) for _ in range(12))
# impressionid = '111222334455667788'
# # requestid = ''.join(str(random.choice(range(10))) for _ in range(12))
# requestid = '111222334455'
# accountid = ''.join(str(random.choice(range(10))) for _ in range(12))
# # 随机生成ip
# ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
# # ip = '156.119.456.190'
# try:
# parms = {
# 'click_time': str(round(time.time() * 1000)),
# # 'click_time': '1667308011000',
# 'wechat_openid': i,
# 'click_id':'123456789',
# 'accountid': accountid,
# 'ip': ip,
# 'impression_id': impressionid,
# 'request_id': requestid,
# '_ry_adgroup_id': '222',
# '_ry_adplan_id': "222",
# '_ry_adcreative_id': '222'
# }
# # timeout可以超时四秒
# # verify = False
# p = requests.get(url=URL, params=parms, timeout=10, verify=False)
# print('imei:', i)
#
# print("ip:", ip)
# # print("accountid:", accountid)
# print(p.text)
# print(p.url)
# # print("oaid:",o)
# print('success:', s)
# print(p.status_code)
# print(p.content)
# # print('androidid:',a)
# # print(nowTime)
# s = s + 1
# except Exception as err:
# print(err)
# print('wrong:', w)
# print('imei:', i)
# print("ip:", ip)
# # print(p.status_code)
# # print('androidid', a)
# w = w + 1
#
# time.sleep(6)
# try:
# allEvent().openxiaochengxu(i, ip, cid, surl, appkey, impressionid, requestid)
#
# except Exception:
# print('install_wrong:', w)
# w = w + 1
for index in range(1):
i = ''.join(str(random.choice(range(10))) for _ in range(28))
# i = '1761453021140876860117396099'
# print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
# 随机生成12为数组
# impressionid = ''.join(str(random.choice(range(10))) for _ in range(12))
impressionid = '97867544365643'
# requestid = ''.join(str(random.choice(range(10))) for _ in range(12))
requestid = '231231232111'
accountid = ''.join(str(random.choice(range(10))) for _ in range(12))
# 随机生成ip
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
# ip = '156.119.456.190'
try:
parms = {
'click_time': str(round(time.time() * 1000)),
# 'click_time': '1667308011000',
# 'wechat_openid': i,
'click_id':'123456789',
'accountid': accountid,
'ip': ip,
'impression_id': impressionid,
# 'request_id': requestid,
'_ry_adgroup_id': '222',
'_ry_adplan_id': "222",
'_ry_adcreative_id': '222'
}
# timeout可以超时四秒
# verify = False
p = requests.get(url=URL, params=parms, timeout=10, verify=False)
print('imei:', i)
print("ip:", ip)
# print("accountid:", accountid)
print(p.text)
print(p.url)
# print("oaid:",o)
print('success:', s)
print(p.status_code)
print(p.content)
# print('androidid:',a)
# print(nowTime)
s = s + 1
except Exception as err:
print(err)
print('wrong:', w)
print('imei:', i)
print("ip:", ip)
# print(p.status_code)
# print('androidid', a)
w = w + 1
# time.sleep(2)
# try:
# allEvent().openxiaochengxu(i, ip, cid, surl, appkey, impressionid)
#
# except Exception:
# print('install_wrong:', w)
# w = w + 1
# # pv
# time.sleep(2)
......@@ -115,6 +115,6 @@ for index in range(1):
# time.sleep(2)
# allEvent().loggedinchengxu(i,ip,cid,surl,appkey)
# time.sleep(2)
# allEvent().paymentchengxu(i, ip, cid, surl, appkey)
allEvent().paymentchengxu(i, ip, cid, surl, appkey)
# time.sleep(2)
# allEvent().eventchengxu(i, ip, cid, surl, appkey)
......@@ -33,7 +33,7 @@ isreyundefaultevent = ''
class allEvent:
# 打开小程序
def openxiaochengxu(self, i, IP, cid, surl, appid, impressionid, requestid):
def openxiaochengxu(self, i, IP, cid, surl, appid, impressionid):
s = json.dumps({
"what": "launch",
"appid": appid,
......@@ -44,20 +44,18 @@ class allEvent:
"_openid": i,
"_campaignid": surl,
"_sceneid": "434444",
"gdt_vid": '1112223344556677',
"gdt_vid": impressionid,
"_ry_adgroup_id": "111",
"_ry_adplan_id": "111",
"_ry_adcreative_id": "111",
"accountid": "123456",
'impression_id': impressionid,
'request_id': requestid,
# 投放广告详情-头条
"advertiser_id": "333",
"ad_id": "333",
"creative_id": "333",
"project_id": "333",
"advert_id": "333",
"_apptype": "wg"
"_apptype": "wx"
},
"where": "launch",
......@@ -145,8 +143,8 @@ class allEvent:
# 付费
def paymentchengxu(self, i, IP, cid, surl, appid):
transactionid = ''.join(str(random.choice(range(10))) for _ in range(19))
# transactionid = '6630524942642751767'
# transactionid = ''.join(str(random.choice(range(10))) for _ in range(19))
transactionid = '352275'
s = json.dumps({
"what": "payment",
"appid": appid,
......@@ -156,22 +154,23 @@ class allEvent:
"_deviceid": i,
"_openid": i,
"_campaignid": surl,
"_sceneid": "unknown",
"_apptype": "wg",
# "_sceneid": "unknown",
"_apptype": "wx",
"_num_pages": "5",
'_transactionid': transactionid,
'_paymenttype': paymenttype,
'_currencyamount': '90',
'_currencyamount': 6.0,
"_currencytype": currencytype,
"_duration": "10"
},
"where": "payment",
"when": when,
"ds": ds,
"who": "lxx-test"
"who": "userid001"
})
p = requests.post(url=URL, data=s, headers=headers, timeout=5)
print(p.text)
print(s)
# loggedin
def loggedinchengxu(self, i, IP, cid, surl, appid):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment