圆月山庄资源网 Design By www.vgjia.com

复制代码 代码如下:
# -*- coding: UTF-8 -*-
import mysql.connector as db
import client.tWeibo
import time

if __name__ == '__main__':
 connect = db.connect(user='root',db='collection',password='',host="127.0.0.1")
 cursor = connect.cursor()
 cursor.execute("SET SQL_MODE = 'TRADITIONAL'")
 uin = 'QQ号'
 passwd = '密码'
 wb = client.tWeibo.tWeibo(uin, passwd)
 wb.login()
 sqlSelectTwitter = "SELECT `content`,`pic` FROM `collection`.`weibo_content2` ORDER BY `id` DESC  LIMIT 0, 144"
 cursor.execute(sqlSelectTwitter)
 for (content, pic) in cursor:
  result = wb.publish(content, pic)
  print(result)
  print("暂停10分钟......")
  time.sleep(600)
 cursor.close()
 connect.close()

标签:
腾讯微博,自动发帖

圆月山庄资源网 Design By www.vgjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
圆月山庄资源网 Design By www.vgjia.com