1. 程式人生 > >模擬登陸qq空間發說說

模擬登陸qq空間發說說

version 自己 https port publish use win64 agent x64

import requests

# network find this
"https://user.qzone.qq.com/proxy/domain/taotao.qzone.qq.com/cgi-bin/emotion_cgi_publish_v6?" "qzonetoken=470760640509be33e4600487e349de76ff1e48aa6e1792a46c3e5f3b9c463804b791aac1b0d294bfbe&" "g_tk=1049293860"

url = "https://user.qzone.qq.com/proxy/domain/taotao.qzone.qq.com/cgi-bin/emotion_cgi_publish_v6?"       "qzonetoken=8e170afa3ebb5ef748b6f419498509c479fafa8a146a295ed3136d2ac9fc8565b314bd5859e65d295c&"       "g_tk=1049293860"

headers = {
    "user-agent":"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)"
                  " Chrome/67.0.3396.99 Safari/537.36",
    "cookie":"take your cookie",
}

# 此為僅自己可見
# 將所有的qq換成你的qq number,qzreferrer中只換最後一個
data = {
    "syn_tweet_verson":"1",
    "paramstr":"1",
    "con":"this is from my spider111",
    "feedversion":"1",
    "ver":"1",
    "ugc_right":"64", # 誰可見就此不同
    "to_sign":"0",
    "hostuin":"qq",
    "code_version":"1",
    "format":"fs",
    "qzreferrer":"https://user.qzone.qq.com/qq/",
}

# 所有人可見
data_open2all = {
    "syn_tweet_verson":"1",
    "paramstr":"1",
    "con":"this is to all test",
    "feedversion":"1",
    "ver":"1",
    "ugc_right":"1",
    "to_sign":"0",
    "hostuin":"qq",
    "code_version":"1",
    "format":"fs",
    "qzreferrer":"https://user.qzone.qq.com/qq/"
}

s = requests.Session()

response = s.post(url,headers=headers,data=data_open2all)

  

模擬登陸qq空間發說說