2016年9月2日

php post请求http接口

摘要: 这里用的是curl方式,所以要先保证curl函数库开启:在php.ini文件里;extension=php_curl.dll前面的;分号去掉 上代码: /** * 模拟post进行url请求 * @param string $url * @param arr... 阅读全文

posted @ 2016-09-02 23:09 愤怒的苹果ext 阅读(46) 评论(0) 推荐(0) 编辑

Python爬虫(3),Python3.x

摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import urllib.request;#中文注释def load_page(url): ''' 发送URL请求 ''' user_agent="Mozilla/... 阅读全文

posted @ 2016-09-02 22:56 愤怒的苹果ext 阅读(12) 评论(0) 推荐(0) 编辑

Python爬虫(2),Python3.x

摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-#中文注释import urllib.request;url = "http://www.baidu.com";#头信息user_agent="Mozilla/5.0 (c... 阅读全文

posted @ 2016-09-02 22:54 愤怒的苹果ext 阅读(10) 评论(0) 推荐(0) 编辑

Python爬虫(1),Python3.x

摘要: 直接上代码: import urllib.request;//引入包response = urllib.request.urlopen("http://www.baidu.com");//加载网页html=response.read();//读取print('... 阅读全文

posted @ 2016-09-02 22:52 愤怒的苹果ext 阅读(17) 评论(0) 推荐(0) 编辑

svn执行clean up失败后提示 cleanup failed–previous operation has not finished; run cleanup .....解决办法

摘要: 大多原因是由于没有先去更新多次操作文件引起的。解决方案找到你.svn目录下的wc.db文件下载sqlite3.exe这个工具为了方便可以放在.svn目录下:然后运行cmd:启动cmd执行sqlite3 wc.db "select * from work_que... 阅读全文

posted @ 2016-09-02 22:08 愤怒的苹果ext 阅读(31) 评论(0) 推荐(0) 编辑

导航