Python Programming – Sqlite for data persistence

SQLite is a C library that provides a lightweight disk-based that doesn’t require a separate server process and allows accessing the using a nonstandard variant of the SQL query language. Some applications can use for internal data storage. It’s also possible to prototype an application using and then port the code to a larger such as PostgreSQL or Oracle.

sqlite3 was written by Gerhard Häring and provides a SQL interface compliant with the DB-API 2.0 specification described by PEP 249.

Continue reading Python Programming – Sqlite for data persistence - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Python HTML Parser Performance

parser凡是涉及到对页面的处理,就需要一个强大的/ Parser支持解析,通过对目标文件的格式化处理,我们才能够实现特定信息提取、特定信息删除和遍历等操作。使用过靓汤和ElementTree,个人感觉可以实现很多功能,但是性能不是太好。下面这篇文章具体分析和比较了各种常用解析器的性能供大家参考,包括, HTMLParser, 等。

Continue reading Python HTML Parser Performance - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

BlogPump: Blog Post Client with Web Crawler(1) – big picture

imageBig Picture is:

1) Module A: Interface with supported Weblog Server to post/retrieve web page, article and others;

2) Module B: Container to support editor or list for data;

3) Module C: Interface with to grasp pages you wanted or articles relevant information against popular search engines;

4) Module D: Profile management for source, patterns and destination combination flexibility;

5) Module E: Data persistent module to store/read locally;

Continue reading BlogPump: Blog Post Client with Web Crawler(1) – big picture - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Python模块学习 - re 正则表达式

re_fsm_regular_express 利用做字符处理非常方便,这当然离不开正则表达式的支持,下面是一篇CSDN上转载过来的关于re的文章。

今天学习了中有关正则表达式的知识。关于正则表达式的语法,不作过多解释,网上有许多学习的资料。这里主要介绍中常用的正则表达式处理函数。

re.match
re.match 尝试从字符串的开始匹配一个模式,如:下面的例子匹配第一个单词。import re  
text = "JGood is a handsome boy, he is cool, clever, and so on…" 

Continue reading Python模块学习 - re 正则表达式 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Python 3 简介

python_programming_logo 打算用开发一个个人投资组合的小软件,当然是要基于 3。GUI的支持选择,最终是不是需要转换成exe文件发布看性能需求了。所以会有一系列的相关文章发布或转载。使用让我又找到了编程的那种快乐,是一种享受程序的过程。以前写过一个基于的网页抓取程序,真的是快捷方便,对于中文的支持和xml的操作都非常方便…闲话不说,下面是一篇关于 3的介绍文章,来自于ibm。

Continue reading Python 3 简介 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis
 Page 7 of 7  « First  ... « 3  4  5  6  7 

Contact us

Admin: Bryan Wu