python
文章平均质量分 72
heymysweetheart
这个作者很懒,什么都没留下…
展开
-
python 批量下载文件
主要功能:登陆一个需要权限的页面,对页面进行解析下载所有列表下的文件到本地目录。#!/usr/bin/python2.7#encoding=utf-8import urllib2from bs4 import BeautifulSoup# create a password managerpassword_mgr = urllib2.HTTPPasswordMgrWithDefaul原创 2016-04-26 18:53:46 · 2112 阅读 · 0 评论 -
python passlib生成Hash密文并进行验证--Hash a password with passlib
encrypt() - generate new salt, return hash of password.verify() - verify password against existing hash.from passlib.hash import sha256_cryptpassword = sha256_crypt.encrypt("password")passw原创 2016-06-03 08:14:03 · 4280 阅读 · 1 评论