Skip to content

Instantly share code, notes, and snippets.

@Sunbelife
Sunbelife / Bot.py
Created February 14, 2018 12:38
微信机器人
#encoding:utf-8
from wxpy import *
import time
command = input("欢迎使用微信拜年机器人 Made By @Sunbelife\n输入 1 -> 自动群发好友拜年信息\n输入 2 -> 开启拜年消息自动回复\n输入 3 -> 开启二合一模式\n")
if command == '1':
bot = Bot()
for friends in bot.friends():
if friends.remark_name:
@Sunbelife
Sunbelife / rss.py
Last active March 6, 2018 02:08
Get latest Apple Beta Version from Apple Developer Releases.rss
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import feedparser
import os
import json
import time
def getinfo(oristr, finstr, offset):
index = oristr.find(finstr)
return oristr[index:index+offset]