摘要:
一:时间转成秒数 stackoverflow.com上还有更多的写法 http://stackoverflow.com/questions/10663720/converting-a-time-string-to-seconds-in-python http://stackoverflow.com/ 阅读全文
posted @ 2017-07-13 16:45
anlcy
阅读(1263)
评论(0)
推荐(0)
摘要:
# -*- coding:utf-8 -*- #模仿自: http://www.jianshu.com/p/f893291674ca#python恶俗古风诗自动生成器from random import sampleimport timeimport oswords="""朱砂 天下 杀伐 人家 韶 阅读全文
posted @ 2017-07-13 16:40
anlcy
阅读(1883)
评论(0)
推荐(0)
摘要:
# -*- coding:utf-8 -*-#用python生产包含电话号码的代码temp = """arr = %sindex = %stel = ''for i in index: tel += arr[i]print("电话号码" + tel)"""def encode(tel): arr = 阅读全文
posted @ 2017-07-13 15:58
anlcy
阅读(1516)
评论(0)
推荐(0)
摘要:
直接从浏览器中取出cookies,有以下好处和用途: 1、不需要配置用户密码,直接读出浏览器中cookies就得到一样的身份,用来完成各种自动化操作。 2、部分网站登录会更新Session,会导致之前成功登录的Session失效,与浏览器使用相同的Session,不用进行登录操作,不会互相挤下线。 阅读全文
posted @ 2017-07-13 15:39
anlcy
阅读(5726)
评论(0)
推荐(0)
摘要:
1.通过浏览器获取登录cookie,找到重要的两个参数“BAIDUID”和“BDUSS”; 2.编写Selenium自动化测试脚本,跳过登录。 from selenium import webdriverdriver = webdriver.Chrome()driver.get("https://w 阅读全文
posted @ 2017-07-13 15:38
anlcy
阅读(1185)
评论(0)
推荐(0)

浙公网安备 33010602011771号