About
PyPingback is a small Python module providing Pingback client functionality. One function that takes the source and target URIs, returning the XML-RPC string response in success, or raising one of a number of explanatory exceptions for fault logging.
It tries to be robust in its handling of dead/broken web servers, unpingable sites, and URIs which should not logically be downloaded in full.
Functionality
XML-RPC server discovery through the X-Pingback header.
XML-RPC server discovery fall back to HTML search.
Content-Type sanity check -- text/plain, text/html, or application/xhtml+xml only.
Content-Length sanity check -- default limit of 500 KB.
Redirect following during XML-RPC discovery, upto 10 iterations.
Extensive unit tests.
To Do
Test HTTPS support
Unit test suite launcher in setup script (manual for n
文 件 列 表
PyPingback-0.4.0 test LICENSE README pingback.py setup.py PKG-INFO
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.002400s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.090821s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.002080s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.002059s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.002258s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003771s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.001991s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003415s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.015530s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.002730s ]
UPDATE `jrk_articles` SET `hits` = 1 WHERE `id` = 87368 [ RunTime:0.001182s ]