Exemplo n.º 1
0
from SendMsgByQQ.QQGUI import send_qq
import time

note_str1 = \
"""
不用盖楼,复制下面的码,打开淘宝或者天猫,直接领红包,一般是几块钱,运气好的更高!
"""


note_str2 = \
"""
【快来兑换你的双11红I包,可赢额外红I包】https://m.tb.cn/h.etQyNSR?sm=64355a 嚸↑↓擊鏈ㄣ接,再选择瀏覽●噐○咑閞ヽ;或復ず■淛整句话¥orm1YuW897g¥后咑閞手机天猫
"""

qun_list = \
    list(set(get_all_win_by_name('找工作'))) + \
    list(set(get_all_win_by_name('军事'))) + \
    list(set(get_all_win_by_name('租房')))

while (get_current_datetime_str()[-8:] >=
       '06:00:00') & (get_current_datetime_str()[-8:] <= '23:00:00'):
    for qun in qun_list:
        try:
            send_qq(qun, note_str1)
            time.sleep(0.5)
            send_qq(qun, note_str2)
            time.sleep(0.5)
            # send_qq(qun, note_str3)
            # time.sleep(1.5)
            print(qun + ': 消息发送成功!\n------------------------\n\n')
        except Exception as e:
Exemplo n.º 2
0
        for qun in qun_list_:
            try:
                for product in list_sub:

                    send_single_product_to_single_qun(product, qun, text_st=text_st, pic_st=pic_st)

                # 附带加qun推广
                # send_qq_hwnd_click_string(qun, add_qun_note)

            except Exception as e:
                print('发送商品到群出错!原因:\n' + str(e))

        time.sleep(product_st)


if __name__ == '__main__':

    # 获取产品列表
    r = get_product_info(r'C:/Users\paul\Desktop\文案')

    # 获取群列表
    qun_list = \
        list(set(get_all_win_by_name('影子')))

    send_all_product_to_all_qun(qun_list, r, 1.5, 0)



    end = 0

Exemplo n.º 3
0
import os

import time

from Hongbao.Sub import get_product_info, send_all_product_to_all_qun
from Room.Sub import get_all_win_by_name

if __name__ == '__main__':


    # 获取产品列表
    r = get_product_info(r'C:/Users\paul\Desktop\文案')

    # 获取群列表
    qun_list = \
        list(set(get_all_win_by_name('找工作'))) + \
        list(set(get_all_win_by_name('军事'))) + \
        list(set(get_all_win_by_name('租房'))) + \
        list(set(get_all_win_by_name('拼车'))) + \
        list(set(get_all_win_by_name('兼职'))) + \
        list(set(get_all_win_by_name('吃鸡'))) + \
        list(set(get_all_win_by_name('赚钱')))

    # qun_list = \
	 #        list(set(get_all_win_by_name('影子')))

    while True:

        send_all_product_to_all_qun(
	        qun_list_=qun_list,
	        product_list=r,
Exemplo n.º 4
0
1、作息规律(很重要,晚上10点半后尽量保持安静)、
    有正当职业、品德优秀,好沟通、不吸烟!
2、不接受带宠物
3、女生或者情侣优先,人品好,有原则的男生也可以考虑。
"""

note_str4 = \
"""
联系方式:
小窗或者加本qq好友(工作时间不怎么看QQ,尽量加微信聊)
电话(微信):13791930992


未来的室友,希望我们能够一起愉快的生活~
"""
qun_list = list(set(get_all_win_by_name('租房')))

while (get_current_datetime_str()[-8:] >= '06:00:00') & (get_current_datetime_str()[-8:] <= '12:00:00'):
    for qun in qun_list:
        try:
            send_qq(qun, note_str1)
            time.sleep(1.5)
            send_qq(qun, note_str2)
            time.sleep(1.5)
            send_qq(qun, note_str3)
            time.sleep(1.5)
            print(qun + ': 消息发送成功!\n------------------------\n\n')
        except Exception as e:
            print(qun + ': 消息发送失败!\n原因:\n' + str(e) + '\n------------------------\n\n')

    print('\n\n================== 大循环完成 ==================\n\n完成时间:' + get_current_datetime_str() + '\n')
Exemplo n.º 5
0
rootPath = curPath[:curPath.find("SandPlate\\") +
                   len("SandPlate\\")]  # 获取myProject,也就是项目的根路径

sys.path.append('..')
sys.path.append(rootPath)

from SendMsgByQQ.QQGUI import send_qq
import time
from Room.Sub import get_all_win_by_name
from SDK.MyTimeOPT import get_current_datetime_str

note_str1 = \
"""
人找车,今天下午(具体时间可以商量),平度同和(在平度南高速口附近)到青岛市北台东,一个人,顺路的老乡小窗联系!
"""
qun_list = list(set(get_all_win_by_name('拼车'))) + list(
    set(get_all_win_by_name('顺风车')))

while (get_current_datetime_str()[-8:] >=
       '06:00:00') & (get_current_datetime_str()[-8:] <= '23:00:00'):
    for qun in qun_list:
        try:
            send_qq(qun, note_str1)
            time.sleep(1.5)
            print(qun + ': 消息发送成功!\n------------------------\n\n')
        except Exception as e:
            print(qun + ': 消息发送失败!\n原因:\n' + str(e) +
                  '\n------------------------\n\n')

    print('\n\n================== 大循环完成 ==================\n\n完成时间:' +
          get_current_datetime_str() + '\n')