Beautiful Soup, use find()/find_all() attrs parameter to select HTML tag
Note: This article applies to Python 3 environment. Background Recently, I’m working on a web-scrapying…
Read MoreNote: This article applies to Python 3 environment. Background Recently, I’m working on a web-scrapying…
Read MoreNote: This article applies to Python 2 environment. Background In Unix/Linux programming, we use fork…
Read MoreNote: This article applies to Python 2 environment. Background Nowadays, I’m writing a program to…
Read More注:文中采用的 Hadoop 集群环境为 Hadoop 2.2.0。 最近由于工作需要,对 Hadoop 的机架(rack)策略做了调研。下面记录下调研结果。 背景 首先需要明确的是,机架是硬件,机房里的服务器都放在机架(rack)上。放在不同的 rack 上的机器,有什么区别呢? 每个 rack 上的机器连接的是相同的电源,不同的…
Read MoreBackground Nowadays, I upgrade my Gentoo Linux to the lastest version using emerge. But unfortunately,…
Read MoreWhen using Hadoop under Linux, we need to type lots of commands to operate on…
Read More注:本文适用于 Python 3 环境。 之前一篇博客记录了用 Psycopg2 库操作 PostgreSQL 数据库踩过的坑。本文就介绍用 Python 的另一个库 py-postgresql 操作 PostgreSQL 数据库时踩过的坑。…
Read More