摘要: import pymysql import requests from bs4 import BeautifulSoup baseUrl = "https://movie.douban.com/top250?start=%d&filter=" def get_movies(start): url = baseUrl % start lists = [] html = re... 阅读全文
posted @ 2017-07-15 13:38 haha1680737 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 这里说下Windows下的修改方法,看了网上很多的教程发现都不行,尝试了好久终于发现了可行的方法。 找到python安装目录下的:\Lib\site-packages\pip\models\index.py文件,将PYPI的值改为你所需要的源即可,例如改为豆瓣的源。 [python] view pl 阅读全文
posted @ 2017-07-15 13:37 haha1680737 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1、必须使能安全策略的http和https服务 2、生成ssl的密码时,cert和keyfile需要使用一个文件名 openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem 3、ubu 阅读全文
posted @ 2017-07-15 13:36 haha1680737 阅读(142) 评论(0) 推荐(0) 编辑