abcd1234(愿与) - 2019-10-20 2 人
文字定时出现
zencn(Edward) - 2019-10-19 1 人
XX项目在线测试
abcd1234(愿与) - 2019-10-16 1 人
生成div,可拖拽,双击显示随机排名
import re
import requests
from bs4 import BeautifulSoup
import random
def RandomEmail( emailType=None, rang=None):
    __emailtype = ["@qq.com", "@163.com", "@126.com", "@189.com"]
    # 如果没有指定邮箱类型,默认在 __emailtype中随机一个
    if emailType == None:
        __randomEmail = random.choice(__emailtype)
    else:
        __randomEmail = emailType
    # 如果没有指定邮箱长度,默认在4-10之间随机
    if rang == None:
        __rang = random.randint(4, 10)
    else:
        __rang = int(rang)
    __Number = "0123456789qbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPWRSTUVWXYZ"
    __randomNumber = "".join(random.choice(__Number) for i in range(__rang))
    _email = __randomNumber + __randomEmail
    return _email
def ranstr(num):
    # 猜猜变量名为啥叫 H
    H = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'

    salt = ''
    for i in range(num):
        salt += random.choice(H)

    return salt
if __name__=='__main__':
    while True:
        url = 'https://www.lulula.cn/auth/register'
        email=RandomEmail(emailType='@qq.com',rang=20)
        name=ranstr(6)
        passwd='aa123456'
        # print("名称:"+name)
        # print("账号:"+email)
        # print("密码:"+passwd)
        data={"email":email,"name":name,"passwd":passwd,"repasswd":passwd}
        req=requests.Session()
        response=req.post(url,data=data)
        if response.json()["ret"]==1:
            #print("注册成功")
            pass
        else:
            #print("注册失败")
            exit()
        url='https://www.lulula.cn/auth/login'
        data={"email":email,"passwd":passwd}
        response=req.post(url,data=data)
        if response.json()["ret"]==1:
            #print("登录成功")
            pass
        else:
            #print("登录失败")
            exit()
        url="https://www.lulula.cn/user"
        response=req.get(url)
        soup=BeautifulSoup(response.text,features="lxml")
        print("订阅地址:" + soup.find("input")["value"])
        for i in soup.select("a.btn-dl"):
            print(re.findall("</i>(.*?)</a>",str(i))[0]+":\n"+i["href"])

        with open("1.txt","a") as f:
            f.write("订阅地址:"+soup.find("input")["value"]+"\n")
            for i in soup.select("a.btn-dl"):
                f.write(re.findall("</i>(.*?)</a>",str(i))[0]+":\n"+i["href"])
wxy1343(wxy) - 2019-10-13 1 人
酸酸乳订阅链接获取
roshomon(前端大神) - 2019-09-26 3 人
Vue2Leaflet demo2
tmsyang(null) - 2019-09-29 1 人
css清除浮动
没有了
1/317 下一页