Commit Graph

171 Commits

Author SHA1 Message Date
Jeremy Fincher
b2f98258a6 Fixed bug in handling of pages less than maxSize but with no Content-length header. 2003-12-03 20:47:33 +00:00
Jeremy Fincher
0f3dcf0c01 Added Http.size, Http.doctype, and Http.headers. 2003-12-03 05:24:18 +00:00
Jeremy Fincher
bc56a8e3f2 Handle errors in getUrlFd properly in Http.kernel. 2003-12-02 11:31:27 +00:00
Jeremy Fincher
1aaf611158 Made sure the fd gets closed in Http.kernel. 2003-12-02 11:19:53 +00:00
Jeremy Fincher
5549322771 Fix for bug #852422. 2003-12-02 11:16:26 +00:00
Jeremy Fincher
2f1c8415b6 Added getUrlFd, used it in Http.kernel. 2003-12-02 11:10:31 +00:00
James Vega
a0b0999762 Apparently the pigs at hamweather think Tsra == Thunder Storms. I didn't find
that to be very obvious, so I added a little .replace() to be more friendly
2003-12-02 03:10:16 +00:00
Jeremy Fincher
b1f0bbe887 Shouldn't have taken out the callCommand when I converted to webutils. 2003-12-02 00:25:54 +00:00
Jeremy Fincher
8d9ed6bf87 Added webutils module; used it in Http. 2003-12-02 00:12:45 +00:00
Jeremy Fincher
e15d15f794 Made sure Http.title doesn't read infinitely. 2003-11-29 02:34:07 +00:00
Jeremy Fincher
48166f4895 Huge update to the logging infrastructure. 2003-11-26 18:21:12 +00:00
Jeremy Fincher
5f4a541fe1 Added __revision__ strings. 2003-11-25 08:23:47 +00:00
Brett Phipps
0a13904a13 Added an additional check to weather. Fixed getting a single
argument that coudl not be found properly.
2003-11-24 20:35:26 +00:00
Jeremy Fincher
d338789a7b Fixed bug in acronym showing the header, added a test. 2003-11-23 13:25:43 +00:00
Jeremy Fincher
d05a9a3121 Updated for newly tweaked acronymfinder page. 2003-11-23 13:20:20 +00:00
Jeremy Fincher
7784d21cde Fixed the bug in acronym for the change in format and tightened the test to catch such changes. 2003-11-22 01:13:33 +00:00
Brett Phipps
e21d7109cb Fixed the problem where country abbreviations that match USA State
abbreviations will never be found.

Arizona seemed to be missing from our _realStates set.  It's in there now.

Added a _mapCountries to map 'obviously' debatable country abbreviations.
(Just have uk->gb in there at the moment.  I probably missed a few).
2003-11-20 05:27:03 +00:00
Jeremy Fincher
eb6e112f70 Changed some maps/filters to imaps/ifilters for efficiency reasons (I was bored, basically). 2003-11-15 04:37:04 +00:00
James Vega
4ce677bc6e Slight syntax fix for @weather reply 2003-11-12 17:22:23 +00:00
Jeremy Fincher
76ad28918f Fixed the stupid DOM Element output, added test. 2003-11-05 06:56:03 +00:00
Jeremy Fincher
ed94dd44ca Fixed freshmeat command, changed it to use xml.dom.minidom. Also removed example string. 2003-11-05 06:50:06 +00:00
Jeremy Fincher
4e4855094c Forget to catch the actual exception instance in callCommand. 2003-10-31 19:17:26 +00:00
Jeremy Fincher
8d04bdbcb6 Refactored some stuff to be a bit cleaner. 2003-10-30 03:38:55 +00:00
Daniel DiPaolo
f0574da59a Fixed the 'title' regexp to be non-greedy, in case there's a </title> tag
within the document itself.  Also put a test for this (which will hopefully be
a permanent link... not sure though)
2003-10-24 00:46:21 +00:00
Daniel Berlin
0b380f56fe Add --id option to geekquote, make it always allow multiline quotes 2003-10-22 22:05:34 +00:00
Daniel Berlin
98a13e267a Fix multiline geekquotes 2003-10-21 19:54:30 +00:00
James Vega
84f931bb9f Lots of pylint cleanups 2003-10-11 21:03:02 +00:00
Jeremy Fincher
ec0de6431d Changed baseplugin not to require 'from baseplugin import *' because fix is now munging builtins. 2003-10-05 12:56:56 +00:00
Jeremy Fincher
358533b335 Removed deepthought command now that we have a supyfact for it. 2003-09-13 13:39:41 +00:00
Jeremy Fincher
9eb08fa205 Removed length restriction from deepthought. 2003-09-11 18:39:47 +00:00
Jeremy Fincher
ecc820a49c Fixe for bug with titles that spread across lines. 2003-09-09 21:00:36 +00:00
Jeremy Fincher
073040d92e Fixed bug #802804 about the bad appearance of [not an acronym]. 2003-09-09 08:33:07 +00:00
James Vega
89d5f7a088 Make sure the urllib2 file gets closed properly in pgpkey 2003-09-08 17:35:24 +00:00
James Vega
cc07bc1272 Switched pgpkey from using .read() to .readline() since there's possibly a large amount of results. 2003-09-08 17:15:26 +00:00
James Vega
d9e3a199b0 Removed the trailing ' :: ' from pgpkey 2003-09-08 08:59:43 +00:00
James Vega
9d8aa07f86 Added pgpkey and a test case for it 2003-09-08 08:48:33 +00:00
Jeremy Fincher
e3148c03fe Removed foldoc command (it's markedly inferior to Dict.dict). 2003-09-07 06:32:13 +00:00
Jeremy Fincher
b68908ed00 Convert not to care how long its messages are. 2003-09-07 06:01:25 +00:00
Jeremy Fincher
21f0cb89ae Moved babelfish stuff to its own plugin. 2003-09-05 19:49:44 +00:00
Jeremy Fincher
736d46cff3 Forgot to close the file object from urllib2.urlopen. 2003-08-30 02:35:28 +00:00
Jeremy Fincher
7911d0f0a3 Moved kernel over to Http as per the wishes of the kernel.org folx0rs. 2003-08-30 02:33:28 +00:00
Jeremy Fincher
550f0fb3de Forgot return after irc.error and added test for non-existent location. 2003-08-27 22:30:48 +00:00
Jeremy Fincher
ce67b6ef5a Added better error reporting. 2003-08-27 22:27:58 +00:00
Jeremy Fincher
b572562cb3 Added utils.wrapLines and wrapped the lines of each plugin's example. 2003-08-27 16:25:43 +00:00
Jeremy Fincher
575656992e Fixed bug in weather, added test for it; added example string. 2003-08-27 16:01:51 +00:00
Jeremy Fincher
075af0967c Commented out some debug.printfs. 2003-08-25 20:13:20 +00:00
Jeremy Fincher
5b2cc92917 Weather now works. This is gotenks2's commit. 2003-08-23 13:00:24 +00:00
Jeremy Fincher
5234c730c1 Converted states to lower before checking for membership in the set. 2003-08-23 12:44:25 +00:00
James Vega
63fafdcccb Added bwp's weather module 2003-08-23 12:40:30 +00:00
Jeremy Fincher
35c33276ea Moved debversion to Debian from Http. 2003-08-22 00:52:10 +00:00
James Vega
ae2fc047d3 Removed/modified some country codes for babelfish modules. 2003-08-21 22:38:26 +00:00
Jeremy Fincher
526e5b613b Added error to babelize in case one language isn't english. 2003-08-21 15:49:06 +00:00
Jeremy Fincher
088047aea8 Stylistic updates. 2003-08-21 12:25:35 +00:00
James Vega
28a8071635 Add babelfish.py and the corresponding translate & babelize functions to Http.py 2003-08-20 22:47:19 +00:00
Jeremy Fincher
ca646716b1 Removed spaces at the end of lines. 2003-08-20 16:26:23 +00:00
Jeremy Fincher
861e29c391 Fixed the total matches problem. 2003-08-18 21:32:11 +00:00
Jeremy Fincher
074268ffe6 Added some tests and fixed a bug they found in the title command. 2003-08-15 17:40:14 +00:00
Jeremy Fincher
ebd2113eb3 Moved zipcode over to the FunDB module. 2003-08-14 10:51:42 +00:00
Jeremy Fincher
39cce9c3af Changed from 's.find(x) != -1' to 'x in s' 2003-08-11 17:16:03 +00:00
Jeremy Fincher
bba0e6e880 Moved gameknot stuff out to its own module. 2003-08-11 05:22:15 +00:00
Jeremy Fincher
b4633370ce Forgot to add the % name to the 'no user' gkstats response. 2003-08-05 05:02:21 +00:00
Jeremy Fincher
6e19d921c8 Forget this with the other 2.3 upgrade stuff. 2003-08-01 02:58:29 +00:00
Jeremy Fincher
1891a46894 Fixed bug in deepthought. 2003-07-29 12:48:54 +00:00
Jeremy Fincher
fb730d72a1 Fixed bug in acronym; why did it blindly remove the first and last responses? 2003-07-24 13:33:31 +00:00
Jeremy Fincher
b64e0d5730 Added a set of deepthoughts so lookup is faster if the queue gets large. 2003-07-24 10:09:50 +00:00
Jeremy Fincher
d346d877c9 Tweaked deblookup and changed its named to debversion. 2003-07-23 15:10:41 +00:00
Daniel DiPaolo
d3268414e3 * added preliminary version of deblookup module (basically a straight copy of
moobot's deblookup with some minor tweaks)
2003-07-23 06:40:05 +00:00
Jeremy Fincher
e745ec6d88 It's a string, not an integer, idjit! 2003-07-02 19:00:43 +00:00
Jeremy Fincher
df02bd593e Fixed plurality problem in gkstats. 2003-07-02 18:58:45 +00:00
Jeremy Fincher
d9399fb304 Added urllib.unquote to foldoc error message. 2003-06-14 10:40:52 +00:00
Jeremy Fincher
82bb295b20 Fixed enqueuing in deepthought. 2003-06-03 05:24:21 +00:00
Jeremy Fincher
ee805e2860 Fixed IndexError on empty deepthoughtq. 2003-06-03 03:25:19 +00:00
Jeremy Fincher
800efee2ea Removed spurious quoting from acronym. 2003-06-02 07:21:35 +00:00
Jeremy Fincher
4be5d42dc5 Fixed Http.deepthought to queue thoughts and to import structures for such queueing. 2003-06-02 06:55:51 +00:00
Jeremy Fincher
f0c32e039d Stupid SyntaxError...grrr... 2003-06-02 06:51:09 +00:00
Jeremy Fincher
0f018d0221 Changed acronym to allow as many acronyms as possible. 2003-06-02 06:46:40 +00:00
Jeremy Fincher
5bc901e125 Changed foldoc to hopefully stave off the empty return. 2003-05-23 05:46:33 +00:00
Jeremy Fincher
6822cc31a7 Better error handling for title command. 2003-04-29 15:40:02 +00:00
Jeremy Fincher
45cdde675c Added title command; fixed a latent bug or two. 2003-04-29 06:48:54 +00:00
Jeremy Fincher
110eb47529 Qualified foldoc raise of ArgumentError. 2003-04-16 08:35:13 +00:00
James Vega
78687027b0 Fixed gkstats so that it doesn't display duplicate text with gkseen 2003-04-15 01:43:23 +00:00
James Vega
c7a867b589 The 'seen' regex for gkstats was changed back to searching through text instead of html. 2003-04-14 16:49:20 +00:00
Daniel DiPaolo
24234810fb Fixed gkstats to not break on people hiding their online status. (closes:
#720926)
2003-04-14 06:59:21 +00:00
Jeremy Fincher
6976d587d5 Removed slashdot and moved it to RSS.py 2003-04-06 11:48:29 +00:00
Jeremy Fincher
99364a27af Changed slashdot to use rssparser and also to remove all stories if the resulting message is too long. 2003-04-06 11:28:51 +00:00
Jeremy Fincher
047470f371 Fixed gkstats 'last seen' regexp. 2003-04-05 19:45:48 +00:00
Jeremy Fincher
a708471a45 Added morehelps and change a gkstats regexp slightly. 2003-04-05 19:41:59 +00:00
James Vega
924d48ebad Prettified acronym's morehelp 2003-04-03 05:48:04 +00:00
Jeremy Fincher
f1b02e64e5 Formatting changes to netcraft and gkstats. 2003-04-02 16:13:29 +00:00
Jeremy Fincher
59a803d3b2 Ugh, stupid bug. 2003-04-02 16:05:26 +00:00
Jeremy Fincher
fcb0403711 Added proper response for invalid hostnames 2003-04-02 16:03:38 +00:00
Jeremy Fincher
33847807f7 Forgot to remove the creation of debugging files. 2003-04-02 09:53:50 +00:00
Jeremy Fincher
75768aa524 Added netcraft command 2003-04-02 08:54:23 +00:00
Jeremy Fincher
534c367b89 Slightly modified acronym regexp not to capture extra groups 2003-03-31 08:10:33 +00:00
Jeremy Fincher
d6f7fef0f8 Changed acronym to use %r for definitions so they get quoted. 2003-03-31 07:06:13 +00:00
James Vega
b1a2b87ed3 Adjusted the regex. Added morehelp response. Adjusted the request so that it specifies a browser (site does browser-checking). Used some list comprehension to show only the first 5 results. 2003-03-31 03:26:23 +00:00
James Vega
fc0bbc34d2 Removed a print statement 2003-03-31 02:09:24 +00:00
James Vega
a2d004b3bd Fixed gkstats so that they work with utils.textToHtml 2003-03-31 02:06:42 +00:00
Jeremy Fincher
25e71562d2 Formatting changes 2003-03-28 05:19:14 +00:00
Jeremy Fincher
bce7b6fcd8 Changed stripHtml to utils.htmlToText 2003-03-28 03:53:22 +00:00