摘要: 将现有的东西尽情发挥。尽量地开展自己,并且开始检视你以前从未注意过的不同的主题、产业及市场。这一生中,不管你在任何地方做任何事,也不管你是不是拥有自己的事业,还是替他人打工;不管是赚是赔,你总是得为一个以牟利为中心的职务负一部分盈亏责任。重要的是,不管是对你自己、对公司、业务、雇主、生涯及未来,你都应该学习如何使你所作所为产生最大的效果,你所该追逐的答案,应该是 如何突破。卓越策略就是具备将顾客的需求放在自己的需求之前的能力,如此成功自然随之而来。最大的经商成功秘密,就是常常在你所做的每件事保留余地。你必须先找出你要的是什么,然后确定你走的是正确的路。 阅读全文
posted @ 2012-05-22 23:27 小楼 阅读(360) 评论(0) 推荐(0) 编辑
摘要: Use BeautifulSoupfrom urllib import urlopenfrom bs4 import BeautifulSoup as BStext = urlopen("http://www.python.org/community/jobs/").read()soup = BS(text.decode('gbk', 'ignore'))jobs = set()for header in soup('h2'): links = header('a', 'reference') 阅读全文
posted @ 2012-05-22 22:20 小楼 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Using HTMLPareserUsing HTMLParser simply means subclassing it, and overriding various event-handling methods such as handle_starttag or handle_data.Handle_starttag(tag, attrs): When a start tag is found. Attrs is a sequence of (name, value) pairs.Handle_startendtag(tag, attrs): for empty tags; defau 阅读全文
posted @ 2012-05-22 22:19 小楼 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Screen scraping is a process whereby your program downloads Web pages and extracts information from them. Conceptually, the technique is very simple. You download the data and analyze it, you could, simply use urllib, get the Web page’s HTML source, and then use regular expressions or some such to e 阅读全文
posted @ 2012-05-22 22:18 小楼 阅读(245) 评论(0) 推荐(0) 编辑