rawdoghttp://offog.org/git/rawdog.atomgitatom2021-06-29T11:18:09Zhttp://offog.org/git/rawdog.git#5e079809467a940916514b6e0e9e3c1eadaea3ea2021-06-29T11:18:09Z2021-06-29T11:18:09ZUse the Python 3-style print function.Use the Python 3-style print function.
Add a Config.warn method that handles most of the warning and error
messages previously shown with print >>sys.stderr.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#04323620854222e4aba1b149d49dfe0aafb94d5d2021-06-29T11:09:55Z2021-06-29T11:09:55ZAdd User-Agent support to feedscanner.Add User-Agent support to feedscanner.
As some blogging services block requests with the default Python
User-Agent, this makes scanning a bit more effective.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#62a8fd141f56d62010c0828bb30cf16e3a4bf03f2019-10-07T14:05:25Z2019-10-07T14:05:25Zrawdog 2.24rc1.rawdog 2.24rc1.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#033dfbdb6a6ce9ad214a5a123f459f75284cc3682018-12-26T10:07:21Z2018-12-26T10:07:21Zrawdog 2.23.rawdog 2.23.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#97e39ed7b4a8577eae3a6f423a653859aa4a98a82018-10-09T19:24:25Z2018-10-09T19:24:25ZUpdate COPYING and license notices to current versions.Update COPYING and license notices to current versions.
rawdog is still GPL v2+, but the FSF's current text has some minor
formatting improvements, and the license notice is clearer.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#389b070a5cf0052a4a58a86aab90d4f1b6a7b3ec2018-10-09T19:24:16Z2018-10-09T19:24:16ZRework exception-handling code for current feedparser.Rework exception-handling code for current feedparser.
Errors from urllib2 used to be reported in bozo_exception. They are now
raised directly from feedparser.parse, which probably makes more sense.
rawdog now handles both cases, putting network-ish exceptions into
rawdog_exception either way; it also sets rawdog_timeout when a timeout
occurs, which should make it easier for plugins to detect this.
As a result, there's no longer a distinction between the "Error while
fetching feed" and "Error fetching or parsing feed" messages, and a
traceback can be printed for both if showtracebacks is on.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#df658c3284c02b31a0e3055f61b0e4483dd8b1042018-10-09T19:24:03Z2018-10-09T19:24:03ZWork with feedparser's new module structure.Work with feedparser's new module structure.
rawdog needs access to some of feedparser's internals; the locations of
these have changed after the 5.2 release.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#6922a809574ee63f211d5b72fe42cee475c35a5b2018-06-17T10:56:32Z2018-06-17T10:56:32ZRequire Python 2.7.Require Python 2.7.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#742a97998ac42fd6d5870712709ffbe5ba7081762018-06-11T19:32:49Z2018-06-11T19:32:49ZSet tidylib's wrap option to 68, rather than to 0.Set tidylib's wrap option to 68, rather than to 0.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#1ca4d2f1ad8c66d4235876b7eb39657a115ac2bb2018-06-11T19:30:33Z2018-06-11T19:30:33ZOverride pytidylib's BASE_OPTIONS explicitly.Override pytidylib's BASE_OPTIONS explicitly.
This variable has moved from tidylib.BASE_OPTIONS to
tidylib.tidy.BASE_OPTIONS as of pytidylib 0.3.2.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#1f9d3358f907d47cc32e6668c5a10e071497c5fe2018-02-25T17:40:29Z2018-02-25T17:40:29ZAdd the --find option.Add the --find option.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#f5b166d33223334eb6dc5d878691626f7bc2e9e12017-02-28T19:09:02Z2017-02-28T19:09:02ZFix the error message when a redirect-edit fails.Fix the error message when a redirect-edit fails.
This has been broken since 2.15 ("Make it possible to report more than
one error at once."); I'd forgotten that change_feed_url also prints
messages when adding the "errors" code.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#ef14f515a3873371789f03b4f394b5bb671b4cbd2017-02-27T14:22:24Z2017-02-27T14:22:24Zrawdog 2.23rc1.rawdog 2.23rc1.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#79dde2696ab5c836d3b29366cc267cef6dba18e52016-10-11T18:38:46Z2016-10-11T18:38:46Zrawdog 2.22.rawdog 2.22.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#29fb9c53118e57c65f4ae5b6b4bb5d1871ee5a352016-10-03T21:38:36Z2016-10-03T21:38:36ZSpecify input and output encodings for tidylib explicitly.Specify input and output encodings for tidylib explicitly.
tidylib 5 -- which Debian now packages -- has changed the default, and
this caused the test suite to break in a recent rebuild (bug #839294).
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#12e33d1d4d29f17d2745e5fbccfb426c9b78b11e2016-07-26T12:45:03Z2016-07-26T12:45:03ZRemove spaces around keyword args.Remove spaces around keyword args.
pylint warns about this.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#e8e8356d7d59b5fd5e0c99dd5e7180ad982dc16a2016-07-26T11:34:14Z2016-07-26T11:34:14ZBreak import across multiple lines.Break import across multiple lines.
pylint warns about this.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#66cef1188afdc62cf0199af8ba5f298521222e6c2016-07-26T11:28:41Z2016-07-26T11:28:41ZRemove trailing newlines.Remove trailing newlines.
pylint warns about these.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#250ecf797effaf78b1b4e84da7f218383f906eb72016-07-26T11:26:39Z2016-07-26T11:26:39ZFix typo.Fix typo.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#7490b2c4215ce6d38c8e7ac93498c373e077bead2016-07-26T11:26:09Z2016-07-26T11:26:09ZCheck for non-absolute Location headers in 301 redirects.Check for non-absolute Location headers in 301 redirects.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#b6b40c7c54c4411443477e5d80bc198b6d1c4f862016-07-26T11:16:30Z2016-07-26T11:16:30Zrawdog 2.22rc1.rawdog 2.22rc1.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#6270f2401052020cace989c0bae322262e444acd2015-07-18T23:08:57Z2015-07-18T23:08:57Zrawdog 2.21.rawdog 2.21.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#a8e0da92877b3c1cb2b9fc21bc708e4338d8f9b72015-07-12T17:20:56Z2015-07-12T17:20:56ZRemove a couple of things from todolist that have been done.Remove a couple of things from todolist that have been done.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#ac886c82798b18d15a5966b8637a369fd0450fa72015-07-12T17:03:27Z2015-07-12T17:03:27ZHandle timestamps that don't fit in the platform's time_t.Handle timestamps that don't fit in the platform's time_t.
On a 32-bit platform, time.localtime can only deal with 32-bit inputs.
This adds a more thorough set of tests for weird article dates, and
exercises DayWriter as well as article dates.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#2c0055e7ae030353cb8f080bc83a6979d60472cd2015-07-12T13:41:20Z2015-07-12T13:41:20ZDon't continue after a config parser error.Don't continue after a config parser error.
Commit 478f1bfa89c18e08c67115eb75b1148554a0162d introduced this bug; the
"return" in load_config should actually return from main.
A number of tests needed updating to match this, since rawdog now exits
non-zero (correctly) in more cases.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#22bab00f7a2b3d96000e64b79cf2b0d73e35bb652015-07-12T13:23:46Z2015-07-12T13:23:46ZDon't crash when feedparser returns an unformattable date.Don't crash when feedparser returns an unformattable date.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#a5688a670e74bae2e72a336e65b2b74ef1dad2f12015-07-12T12:17:24Z2015-07-12T12:17:24ZUse cStringIO rather than StringIO in all modules.Use cStringIO rather than StringIO in all modules.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#49d6caac6991fbfbe1b5534b4f86033e6df0f6522015-01-31T16:43:08Z2015-01-31T16:43:08ZBe consistent about imports of external modules (spotted by pylint).Be consistent about imports of external modules (spotted by pylint).
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#ec7c319a9d3f566d05b90ebc29444b48a0f112aa2015-01-31T16:41:10Z2015-01-31T16:41:10ZQualify relative imports correctly (spotted by pylint).Qualify relative imports correctly (spotted by pylint).
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#0b2c0118f1e178002320ab24e2c48b47f0d7c1b62015-01-31T16:35:11Z2015-01-31T16:35:11ZSimplify how bits["refresh"] is written.Simplify how bits["refresh"] is written.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#0b5b8d7499a0aeea6db1fd006f3321eca7bb63362015-01-31T16:32:56Z2015-01-31T16:32:56ZUse min to replace code that computes a minimum.Use min to replace code that computes a minimum.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#2e9b61f1cdd3947eb52fe8e80f66d4d40e61c9cb2015-01-31T16:29:34Z2015-01-31T16:29:34ZFix spacing around a comma (spotted by pylint).Fix spacing around a comma (spotted by pylint).
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#c4e649596011828e767dddfe81a16cdf1631ec2f2015-01-31T16:29:20Z2015-01-31T16:29:20ZAvoid multiple statements on the same line (spotted by pylint).Avoid multiple statements on the same line (spotted by pylint).
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#18792cc316c90a86361d8b5654436df66035dc4d2015-01-31T16:29:02Z2015-01-31T16:29:02ZFormat dict literals consistently (spotted by pylint).Format dict literals consistently (spotted by pylint).
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#6f61a2aa9f149d0d943978279a0fe512d0f565f02015-01-31T16:21:05Z2015-01-31T16:21:05ZRemove some superfluous parentheses (spotted by pylint).Remove some superfluous parentheses (spotted by pylint).
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#7be6f04711e50e6d74a2dd70078adfcaf01a41082015-01-31T16:16:48Z2015-01-31T16:16:48ZDon't crash when asked to show a non-existant template.Don't crash when asked to show a non-existant template.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#676da983b208aff79e91c66e9c28c29d9c4754972015-01-31T16:15:06Z2015-01-31T16:15:06ZWhen a test is expected to fail, check that it hasn't crashed.When a test is expected to fail, check that it hasn't crashed.
... except in the one case where we deliberately force a crash, in
which case we instead check that it *has* crashed.
The test for "-s unknown" gives a false pass at the moment; it should
print an error message, but instead it crashes. This will detect that
case.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#ebe6d346416bbea9a282dbd9bdf7cddca7737b372015-01-31T15:23:21Z2015-01-31T15:23:21ZUse local variables in test-rawdog's functions.Use local variables in test-rawdog's functions.
The "key" variable collides between several of these at the moment.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#dff8d473cf25f8c58d28108992b94c00f5f093652015-01-31T15:22:23Z2015-01-31T15:22:23ZUse grep -a when searching for locales.Use grep -a when searching for locales.
Some locales have non-ASCII names.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#1a8141a25c4efa29fa67b4102f62862cb6454ab02015-01-31T15:06:58Z2015-01-31T15:06:58Zrawdog 2.21rc1.rawdog 2.21rc1.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#83d249905f941c4a49b92d9ff6f07063cdd1c84e2014-09-15T22:19:01Z2014-09-15T22:19:01Zrawdog 2.20.rawdog 2.20.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#39af00f498ac98ed06c7080214d2106ad016ddc52014-09-15T22:09:29Z2014-09-15T22:09:29ZBe more flexible when looking for "timed out" exceptions.Be more flexible when looking for "timed out" exceptions.
Debian sid's current Python package produces slightly different
exceptions from stock Python, which caused this check to fail. I've
moved the check out to a function, which'll now match anything with
"timeout", "time out" or "timed out" in it.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#eb0860404b14b3d67cb355cf01e52c6ba3e818642014-09-15T21:29:28Z2014-09-15T21:29:28ZAdd a (subtle) bug to todolist.Add a (subtle) bug to todolist.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#6afaf57d5fef1a18a37c00acd731d9b8da2b592c2014-08-23T12:58:42Z2014-08-23T12:58:42ZAdd a rule to style.css to scale down large images.Add a rule to style.css to scale down large images.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#296753aa77bd0cfac2ee7ec1097e9c74d372dac22014-08-23T12:57:34Z2014-08-23T12:57:34ZAdd a test for the maxage option to test-rawdog.Add a test for the maxage option to test-rawdog.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#92387e19f35ba538e1fa1a56ed8e2363d36021262014-08-23T12:57:20Z2014-08-23T12:57:20ZRemove an unused bit of code from test-rawdog.Remove an unused bit of code from test-rawdog.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#1324be45ddb7379ea25611b784e82a3ceb1db5372014-03-09T14:33:09Z2014-03-09T14:33:09ZAdd .gitignore.Add .gitignore.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#2355071db9160283deb52c0f922607a856a5a6e92014-03-09T14:32:58Z2014-03-09T14:32:58ZMake rawdog and test-rawdog executable.Make rawdog and test-rawdog executable.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#377b666e67769d878fb2a7fd1276a999a4c121c52014-02-02T14:01:15Z2014-02-02T14:01:15Zrawdog 2.20rc1.rawdog 2.20rc1.
Adam Sampsonats@offog.orghttp://offog.org/git/rawdog.git#e35e39f317419a05f03d38a56a76e4d1755467082014-02-02T13:37:39Z2014-02-02T13:37:39Zrawdog 2.19.rawdog 2.19.
Adam Sampsonats@offog.org