We’re getting things ready Loading your experience… This won’t take long.
We’re getting things ready Loading your experience… This won’t take long.
Universal Encoding Detector は Mozillaのコードが移植された、文字コードを判定するライブラリです。 とりあえずの使い方はとっても簡単で文字(列)をdetect()するだけで、推定されたエンコーディングと信頼度が返ってきます。 サポートされている文字コードも文句ありません。 「あ」1文字のように入力文字列が短すぎる場合の判定は常に信頼度0.505と出てましたがエンコーディングは合っていました。実用では1文字から推定するなんて皆無なので何も心配することはないでしょう。 < | >
Character encoding auto-detection in Python. As smart as your browser. Open source. >>> import urllib >>> urlread = lambda url: urllib.urlopen(url).read() >>> import chardet >>> chardet.detect(urlread("http://google.cn/")) {'encoding': 'GB2312', 'confidence': 0.99} >>> chardet.detect(urlread("http://yahoo.co.jp/")) {'encoding': 'EUC-JP', 'confidence': 0.99} >>> chardet.detect(urlread("http://amazo
pythonのeasy_installでこれまでにインストールしたパッケージを確認しようと思ったのだが、一覧表示させる方法が分からなかった。 仕方なくパッケージがインストールされるディレクトリ(/usr/lib/python2.4/site-packages/)に移動したところ easy-install.pth という気になるファイルを発見した。 中身を見たところ、このファイルの中にeasy_installでインストールしたパッケージ名が書かれていたので、とりあえず以下のようすると一覧表示できた。 $ cat /etc/redhat-release CentOS release 5.2 (Final) $ egrep 'egg$' /usr/lib/python2.4/site-packages/easy-install.pth ./pytc-0.8-py2.4-linux-i686.eg
Overview Epydoc is a tool for generating API documentation for Python modules, based on their docstrings. For an example of epydoc's output, see the API documentation for epydoc itself (html, pdf). A lightweight markup language called epytext can be used to format docstrings, and to add information about specific fields, such as parameters and instance variables. Epydoc also understands docstrings
Browse free open source Web Scrapers and projects below. Use the toggles on the left to filter open source Web Scrapers by OS, license, language, programming language, and project status. 無料プランが拡大! | Auth0 無料プランのMAUは25,000まで、さらに、Okta Connectionsが無制限になり、開発者のみなさんがアプリの開発に注力することができるようになりました。 無料・有料プランを拡張してほしい!そのような声を開発者の方々からいただき、プランが大幅に変更されました。プランの制約とセキュリティーの悩みから解き放たれ、みなさんが開発に集中できるようになることを願っています。
Stateful programmatic web browsing in Python, after Andy Lester’s Perl module WWW::Mechanize. mechanize.Browser and mechanize.UserAgentBase implement the interface of urllib2.OpenerDirector, so: any URL can be opened, not just http: mechanize.UserAgentBase offers easy dynamic configuration of user-agent features like protocol, cookie, redirection and robots.txt handling, without having to make a n
You didn't write that awful page. You're just trying to get some data out of it. Beautiful Soup is here to help. Since 2004, it's been saving programmers hours or days of work on quick-turnaround screen scraping projects. Beautiful Soup is a Python library designed for quick turnaround projects like screen-scraping. Three features make it powerful: Beautiful Soup provides a few simple methods and
Version 6.0.1 has been released! Be sure to read the changelog before upgrading! Please use the github issues to ask questions report problems. Please do not email me directly RPyC (pronounced as are-pie-see), or Remote Python Call, is a transparent python library for symmetrical remote procedure calls, clustering and distributed-computing. RPyC makes use of object-proxying, a technique that emplo
Products Kwartz A beautiful template engine. Kwartz can separate presentation logics from html template file, and in the result template is pure HTML file. Kwalify A simple but useful schema validator for YAML and JSON. You can check your YAML or JSON data according to schema definition. Kook Build tool like Make, Rake or Ant for Python and so on. Kook is much powerful than other tools because it
Sifter (freeware) A simple and functional (and free) template engine for PHP/Perl/Ruby/Python シンプルで機能的なPHP/Perl/Ruby/Python用のテンプレートエンジンです。 導入のしやすさと、簡潔なテンプレートが特徴です。 条件分岐やループ(繰り返し)、外部テンプレートの読み込み、フォーム要素への値の埋め込みなど、機能も豊富です。 また、各言語で同じテンプレートを使用できるので、環境によって使い分けることができます。 (言語によって条件判定や演算の結果が異なることがあります) 詳しい使用方法はreferenceの各項目を参照してください。 PHP5、PHP4版(1.1.8) [download] (14.8KB) Perl版(1.1.8) [download] (9.1KB) Ruby版
The MoinMoin Wiki Engine Overview MoinMoin is an advanced, easy to use and extensible WikiEngine with a large community of users. Said in a few words, it is about collaboration on easily editable web pages. MoinMoin is Free Software licensed under the GPL - living from lots of people contributing (see MoinMoinAcknowledgements). If you want to learn more about wiki in general, first read about Wiki
Easy Install Easy Install is a python module (easy_install) bundled with setuptools that lets you automatically download, build, install, and manage Python packages. Please share your experiences with us! If you encounter difficulty installing a package, please contact us via the distutils mailing list. (Note: please DO NOT send private email directly to the author of setuptools; it will be discar
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く