一、错误情况环境:win7+iis7.0DirectoryEntry配置IIS7出现如下错误或者是下面一段代码在IIS6.0下运转正常,但IIS7.0下运转会出错:System.DirectoryServices.DirectoryEntryiisServer;iisServer
=newSyste...
分类:
其他好文 时间:
2014-04-28 17:53:29
阅读次数:
464
参照着网上的爬虫案例(点我),先做了一个demo,基本的爬虫项目创建,以及数据抽取,数据分析,数据保存等等过程基本上有所掌握。
我的需求是需要检索指定的百度贴吧,根据指定的关键字库,搜索出含有关键字的链接,并抽取出来,用于后续告警。 因此,基于需求,分如下步骤:
第一:基于Scrapy创建爬虫项目;...
分类:
编程语言 时间:
2014-04-28 17:37:30
阅读次数:
707
想写个自动定会议室的程序。1、会议系统登录后,存在session,提交会议室的订单通过httpwatch拼接后获得链接地址,直接访问链接及可以了2、如果没有提前登录,就无法提交链接了。使用python+PAMIE实现了了自动登录的过程(登录的链接一直拼接不出来。。)下面说说这个研究过程。。1、一开始...
分类:
编程语言 时间:
2014-04-28 16:04:47
阅读次数:
848
这个天气预报采集是从中国天气网提取广东省内主要城市的天气并回显。本来是打算采集腾讯天气的,但是貌似它的数据是用js写上去还是什么的,得到的html文本中不包含数据,所以就算了爬虫简单说来包括两个步骤:获得网页文本、过滤得到数据。
1、获得html文本。 python在获取html方面十分方便,寥.....
分类:
编程语言 时间:
2014-04-28 15:31:09
阅读次数:
712
sudo apt-get install
python-software-propertiessudo apt-add-repository ppa:brightbox/ruby-ngsudo
apt-get updatesudo apt-get install ruby2.1ruby2.1 -vr...
分类:
其他好文 时间:
2014-04-28 14:18:29
阅读次数:
445
3.1 Installing mod_pythonTo install mod_python,
we simply run:yum install mod_python3.2 Configuring ApacheNow we must configure
Apache so that it can ...
分类:
编程语言 时间:
2014-04-28 04:52:46
阅读次数:
735
using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using System.Linq;using System.Text;u...
分类:
Windows程序 时间:
2014-04-28 04:36:58
阅读次数:
1052
为了方便自己测试和监控,写了三个监控的脚本。 分别监控:
主机【cpu,mem,disk,fs,net】 oracle mysql 脚本如下:hmon.py: monitor Linux os system
including cpu,memory,disk,net,file s...
分类:
数据库 时间:
2014-04-28 01:27:52
阅读次数:
765
本人有一段代码关于"~"运算符 public class m{ public static
void main(String[] args){ int x=~5; System.out.println(x); ...
分类:
其他好文 时间:
2014-04-28 00:48:41
阅读次数:
326
using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using System.Linq;using System.Text;u...
分类:
Windows程序 时间:
2014-04-27 23:51:43
阅读次数:
1188