Debian Codegraph @

ChangeLog

raw
1 This isn't really in proper GNU ChangeLog format, it just happens to
2 look that way.
3
4 2024-04-26 Kovid Goyal
5 * 0.4.10 release
6 * Fix overly long MIME multipart separator on 64 bit systems
7
8 2023-11-07 Kovid Goyal
9 * 0.4.9 release
10 * Fix error on PyPy3
11 * Fix error CPython 3.12
12
13 2022-04-14 Kovid Goyal
14 * 0.4.8 release
15 * Handle mal-encoded robots.txt files more gracefully
16 * Support HTTP 308 redirects
17
18 2021-09-19 Kovid Goyal
19 * 0.4.7 release
20 * Fix the ~ character being percent escaped when sending URLs to servers. See RFC 3986.
21
22 2021-09-01 Kovid Goyal
23 * 0.4.6 release
24 * Python 3.10 compatibility
25 * Fix a bug in the regex used to parse www-authenticate headers that could lead to Denial-of-Service
26
27 2019-12-22 Kovid Goyal
28 * 0.4.5 release
29 * Add a set_html() method to the browser object
30
31 2019-11-07 Kovid Goyal
32 * 0.4.4 release
33 * URLs passed into mechanize now automatically have URL unsafe characters
34 percent encoded. This is necessary because newer versions of python
35 disallow processing of URLs with unsafe characters. Note that this means
36 values return by get_full_url(), get_selector() etc will be percent encoded.
37
38 2019-08-18 Kovid Goyal
39 * 0.4.3 release
40 * When filling forms with unicode strings automatically encode them into
41 the correct encoding fr the HTML page being viewed
42 * Guess content type when uploading files if not specified
43 * py3 compat - Have the version of simple cookies be 0 rather than None
44
45 2019-04-12 Kovid Goyal
46 * 0.4.2 release
47 * A couple of python 3 specific fixes for proxy authorization and
48 * adding controls to forms
49
50
51 2019-03-16 Kovid Goyal
52 * 0.4.1 release
53 * A couple of python 3 specific fixes for servers with missing robots.txt
54 files and also errors when using basic/digest auth
55
56
57 2019-01-16 Kovid Goyal
58 * 0.4.0 release
59 * Python 3 compatibility
60 * Add a finalize_request_headers callback to Browser to allow users full
61 control of what headers are sent with every request
62 * Preserve header ordering when making HTTP requests
63
64 2018-09-11 Kovid Goyal
65 * 0.3.7 release
66 * Fix processing of http-equiv meta tags incorrectly lower casing the content
67 * Fix error when a textbox contained within a form contains unicode characters
68
69 2017-10-13 Kovid Goyal
70 * 0.3.6 release.
71 * Use html5-parser for parsing HTML, when available instead of html5lib
72 for a big performance boost.
73 * Fix error when trying to submit forms with non-ascii values on systems
74 where the default encoding is ascii.
75 * Fix errors on python environments with broken threading
76
77 2017-06-24 Kovid Goyal
78 * 0.3.5 release.
79 * Fix error when trying to open pages that contain HTML entities that
80 decode to unicode characters in their <head> sections
81
82 2017-05-05 Kovid Goyal
83 * 0.3.3 release.
84 * Add get() and __getitem__ methods to the response object for conveninent access to response headers
85
86 2017-04-29 Kovid Goyal
87 * 0.3.2 release.
88 * Allow overriding of Host headers via addheaders
89 * Fix using unicode strings in addheaders and trying to send data with a request failing
90
91 2017-03-17 Kovid Goyal
92 * 0.3.1 release.
93 * Allow easily selecting forms based on HTML attributes of the <form> tag
94 * Allow specifying the HTTP method when creating requests
95 * Convenience API to set headers
96 * Convenience API for dealing with cookies
97 * Create full documentation at: https://mechanize.readthedocs.io/en/latest/
98
99 2017-03-15 Kovid Goyal
100 * 0.3.0 release.
101 * Support HTML 5 (all html is now parsed using html5lib)
102 * Implement cloning of browser instances via Browser.__copy__()
103 * Make gzip content-encoding non-experimental. Always handle it if sent by the server, regardless of set_handle_gzip().
104 * mechanize now requires python >= 2.7.0
105 * When processing cookies that have a blank (unset) path, assume the path
106 is /. Mimics modern browser behavior.
107 * Support PyPy (added to continuous integration testing)
108 * Make the global urlopen/urlretrieve methods threadsafe
109 * Add support for user supplied CA certificates
110 * Fix gzip not being requested on HTTPS connections
111 * Normalize the case of HTTP headers in requests
112 * Fix proxy authentication for https connections not working
113 * Size of codebase reduced by 10,000 lines of code (40%)
114
115 * Backward incompatibility: The factory keyword argument to Browser is no longer allowed
116 * Backward incompatibility: Browser.forms() and Browser.links() return unicode strings instead of byte strings
117 * Backward incompatibility: When searching for a form control if more than one control matches, an AmbiguityError is always raised
118 * Backward incompatibility: There is no longer a mechanize.ParseError and mechanize.ParseResponse
119 class. Parsing now uses the HTML 5 algorithm, which is designed to not fail on malformed markup.
120 * Backward incompatibility: For links that do not have any text the text
121 attribute is now always an empty string instead of None or an empty string.
122 * Backward incompatibility: Remove support for the <isindex> HTML tag which was deprecated in HTML 4 and removed in HTML 5
123
124 2011-03-31 John J Lee <[email protected]>
125 * 0.2.5 release.
126 * This is essentially a no-changes release to fix easy_install
127 breakage caused by a SourceForge issue
128 * Sourceforge is returning invalid HTTP responses, make download
129 links point to PyPI instead
130 * Include cookietest.cgi in source distribution
131 * Note new IETF cookie standardisation effort
132
133 2010-10-28 John J Lee <[email protected]>
134 * 0.2.4 release.
135 * Fix IndexError on empty Content-type header value. (GH-18)
136 * Fall back to another encoding if an unknown one is declared.
137 Fixes traceback on unknown encoding in Content-type header.
138 (GH-30)
139
140 2010-10-16 John J Lee <[email protected]>
141 * 0.2.3 release.
142 * Fix str(ParseError()) traceback. (GH-25)
143 * Add equality methods to mechanize.Cookie . (GH-29)
144
145 2010-07-17 John J Lee <[email protected]>
146 * 0.2.2 release.
147 * Officially support Python 2.7 (no changes were required)
148 * Fix TypeError on .open()ing ftp: URL (only affects Python 2.4
149 and 2.5)
150 * Don't include HTTPSHandler in __all__ if it's not available
151
152 2010-05-16 John J Lee <[email protected]>
153 * 0.2.1 release.
154 * API change: Change argument order of
155 HTTPRedirectHandler.redirect_request() to match urllib2.
156 * Fix failure to use bundled BeautifulSoup for forms. (GH-15)
157 * Fix default cookie path where request path has query containing
158 / character. (http://bugs.python.org/issue3704)
159 * Fix failure to raise on click for nonexistent label. (GH-16)
160 * Documentation fixes.
161
162 2010-04-22 John J Lee <[email protected]>
163 * 0.2.0 release.
164 * Behaviour change: merged upstream urllib2 change (allegedly a
165 "bug fix") to return a response for all 2** HTTP responses (e.g.
166 206 Partial Content). Previously, only 200 caused a response
167 object to be returned. All other HTTP response codes resulted
168 in a response object being raised as an exception.
169 * Behaviour change: Use of mechanize classes with `urllib2` (and
170 vice-versa) is no longer supported. However, existing classes
171 implementing the urllib2 Handler interface are likely to work
172 unchanged with mechanize. Removed RequestUpgradeProcessor,
173 ResponseUpgradeProcessor, SeekableProcessor.
174 * ClientForm has been merged into mechanize. This means that
175 mechanize has no dependencies other than Python itself. The
176 ClientForm API is still available -- to switch from ClientForm to
177 mechanize, just s/ClientForm/mechanize in your source code, and
178 ensure any use of the module logging logger named "ClientForm" is
179 updated to use the new logger name "mechanize.forms". I probably
180 won't do further standalone releases of ClientForm.
181 * Stop monkey-patching Python stdlib.
182 * Merge fixes from urllib2 trunk
183 * Close file objects on .read() failure in .retrieve()
184 * Fix a python 2.4 bug due to buggy urllib.splithost
185 * Fix Python 2.4 syntax error in _firefox3cookiejar
186 * Fix __init__.py typo that hid mechanize.seek_wrapped_response and
187 mechanize.str2time. Fixes
188 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465206
189 * Fix an obvious bug with experimental firefox 3 cookiejar support.
190 It's still experimental and not properly tested.
191 * Change documentation to not require a .port attribute on request
192 objects, since that's unused.
193 * Doc fixes
194 * Added mechanize.urljoin (RFC 3986 compliant function for joining
195 a base URI with a URI reference)
196 * Merge of ClientForm (see above).
197 * Moved to git (from SVN) http://github.com/jjlee/mechanize
198 * Created an issue tracker http://github.com/jjlee/mechanize/issues
199 * Docs are now in markdown format (thanks John Gabriele).
200 * Website rearranged. The old website has been archived at
201 http://wwwsearch.sourceforge.net/old/ . The new website is
202 essentially just the mechanize pages, rearranged and cleaned up a
203 bit.
204 * Source code rearranged for easier merging with upstream urllib2
205 * Fully automated release process.
206 * New test runner. Single test suite; tests create their own HTTP
207 server fixtures (server fixtures are cached where possible for
208 speed).
209
210 2009-02-07 John J Lee <[email protected]>
211 * 0.1.11 release.
212 * Fix quadratic performance in number of .read() calls (and add an
213 automated performance test).
214
215 2008-12-03 John J Lee <[email protected]>
216 * 0.1.10 release.
217 * Add support for Python 2.6: Raise URLError on file: URL errors,
218 not IOError (port of upstream urllib2 fix). Add support for
219 Python 2.6's per-connection timeouts: Add timeout arguments to
220 urlopen(), Request constructor, .open(), and .open_novisit().
221 * Drop support for Python 2.3
222 * Add Content-length header to Request object (httplib bug that
223 prevented doing that was fixed in Python 2.4). There's no
224 change is what is actually sent over the wire here, just in what
225 headers get added to the Request object.
226 * Fix AttributeError on .retrieve() with a Request (as opposed to
227 URL string) argument
228 * Don't change CookieJar state in .make_cookies().
229 * Fix AttributeError in case where .make_cookies() or
230 .cookies_for_request() is called before other methods like
231 .extract_cookies() or .make_cookie_header()
232 * Fixes affecting version cookie-attribute
233 (http://bugs.python.org/issue3924).
234 * Silence module logging's "no handlers could be found for logger
235 mechanize" warning in a way that doesn't clobber attempts to set
236 log level sometimes
237 * Don't use private attribute of request in request upgrade
238 handler (what was I thinking??)
239 * Don't call setup() on import of setup.py
240 * Add new public function effective_request_host
241 * Add .get_policy() method to CookieJar
242 * Add method CookieJar.cookies_for_request()
243 * Fix documented interface required of requests and responses (and
244 add some tests for this!)
245 * Allow either .is_unverifiable() or .unverifiable on request
246 objects (preferring the former)
247 * Note that there's a new functional test for digest auth, which
248 fails when run against the sourceforge site (which is the
249 default). It looks like this reflects the fact that digest auth
250 has been fairly broken since it was introduced in urllib2. I
251 don't plan to fix this myself.
252
253 2008-09-24 John J Lee <[email protected]>
254 * 0.1.9 release.
255 * Fix ImportError if sqlite3 not available
256 * Fix a couple of functional tests not to wait 5 seconds each
257
258 2008-09-13 John J Lee <[email protected]>
259 * 0.1.8 release.
260 * Close sockets. This only affects Python 2.5 (and later) -
261 earlier versions of Python were unaffected. See
262 http://bugs.python.org/issue1627441
263 * Make title parsing follow Firefox behaviour wrt child
264 elements (previously the behaviour differed between Factory and
265 RobustFactory).
266 * Fix BeautifulSoup RobustLinksFactory (hence RobustFactory) link
267 text parsing for case of link text containing tags (Titus Brown)
268 * Fix issue where more tags after <title> caused default parser to
269 raise an exception
270 * Handle missing cookie max-age value. Previously, a warning was
271 emitted in this case.
272 * Fix thoroughly broken digest auth (still need functional
273 test!) (trebor74hr@...)
274 * Handle cookies containing embedded tabs in mozilla format files
275 * Remove an assertion about mozilla format cookies file
276 contents (raise LoadError instead)
277 * Fix MechanizeRobotFileParser.set_opener()
278 * Fix selection of global form using .select_form() (Titus Brown)
279 * Log skipped Refreshes
280 * Stop tests from clobbering files that happen to be lying around
281 in cwd (!)
282 * Use SO_REUSEADDR for local test server.
283 * Raise exception if local test server fails to start.
284 * Tests no longer (accidentally) depend on third-party coverage
285 module
286 * The usual docs and test fixes.
287 * Add convenience method Browser.open_local_file(filename)
288 * Add experimental support for Firefox 3 cookie jars
289 ("cookies.sqlite"). Requires Python 2.5
290 * Fix a _gzip.py NameError (gzip support is experimental)
291
292 2007-05-31 John J Lee <[email protected]>
293 * 0.1.7b release.
294 * Sub-requests should not usually be visiting, so make it so. In
295 fact the visible behaviour wasn't really broken here, since
296 .back() skips over None responses (which is odd in itself, but
297 won't be changed until after stable release is branched).
298 However, this patch does change visible behaviour in that it
299 creates new Request objects for sub-requests (e.g. basic auth
300 retries) where previously we just mutated the existing Request
301 object.
302 * Changes to sort out abuse of by SeekableProcessor and
303 ResponseUpgradeProcessor (latter shouldn't have been public in
304 the first place) and resulting confusing / unclear / broken
305 behaviour. Deprecate SeekableProcessor and
306 ResponseUpgradeProcessor. Add SeekableResponseOpener. Remove
307 SeekableProcessor and ResponseUpgradeProcessor from Browser.
308 Move UserAgentBase.add_referer_header() to Browser (it was on by
309 default, breaking UserAgent, and should never really have been
310 there).
311 * Fix HTTP proxy support: r29110 meant that Request.get_selector()
312 didn't take into account the change to .__r_host
313 (Thanks tgates@...).
314 * Redirected robots.txt fetch no longer results in another
315 attempted robots.txt fetch to check the redirection is allowed!
316 * Fix exception raised by RFC 3986 implementation with
317 urljoin(base, '/..')
318 * Fix two multiple-response-wrapping bugs.
319 * Add missing import in tests (caused failure on Windows).
320 * Set svn:eol-style to native for all text files in SVN.
321 * Add some tests for upgrade_response().
322 * Add a functional test for 302 + 404 case.
323 * Add an -l option to run the functional tests against a local
324 twisted.web-based server (you need Twisted installed for this
325 to work). This is much faster than running against
326 wwwsearch.sourceforge.net
327 * Add -u switch to skip unittests (and only run the doctests).
328
329 2007-01-07 John J Lee <[email protected]>
330
331 * 0.1.6b release
332 * Add mechanize.ParseError class, document it as part of the
333 mechanize.Factory interface, and raise it from all Factory
334 implementations. This is backwards-compatible, since the new
335 exception derives from the old exceptions.
336 * Bug fix: Truncation when there is no full .read() before
337 navigating to the next page, and an old response is read after
338 navigation. This happened e.g. with r = br.open();
339 r.readline(); br.open(url); r.read(); br.back() .
340 * Bug fix: when .back() caused a reload, it was returning the old
341 response, not the .reload()ed one.
342 * Bug fix: .back() was not returning a copy of the response, which
343 presumably would cause seek position problems.
344 * Bug fix: base tag without href attribute would override document
345 URL with a None value, causing a crash (thanks Nathan Eror).
346 * Fix .set_response() to close current response first.
347 * Fix non-idempotent behaviour of Factory.forms() / .links() .
348 Previously, if for example you got a ParseError during execution
349 of .forms(), you could call it again and have it not raise an
350 exception, because it started out where it left off!
351 * Add a missing copy.copy() to RobustFactory .
352 * Fix redirection to 'URIs' that contain characters that are not
353 allowed in URIs (thanks Riko Wichmann). Also, Request
354 constructor now logs a module logging warning about any such bad
355 URIs.
356 * Add .global_form() method to Browser to support form controls
357 whose HTML elements are not descendants of any FORM element.
358 * Add a new method .visit_response() . This creates a new history
359 entry from a response object, rather than just changing the
360 current visited response. This is useful e.g. when you want to
361 use Browser features in a handler.
362 * Misc minor bug fixes.
363
364 2006-10-25 John J Lee <[email protected]>
365
366 * 0.1.5b release: Update setuptools dependencies to depend on
367 ClientForm>=0.2.5 (for an important bug fix affecting fragments
368 in URLs). There are no other changes in this release -- this
369 release was done purely so that people upgrading to the latest
370 version of mechanize will get the latest ClientForm too.
371
372 2006-10-14 John J Lee <[email protected]>
373 * 0.1.4b release: (skipped a version deliberately for obscure
374 reasons)
375 * Improved auth & proxies support.
376 * Follow RFC 3986.
377 * Add a .set_cookie() method to Browser .
378 * Add Browser.open_novisit() and Request.visit to allow fetching
379 files without affecting Browser state.
380 * UserAgent and Browser are now subclasses of UserAgentBase.
381 UserAgent's only role in life above what UserAgentBase does is
382 to provide the .set_seekable_responses() method (it lives there
383 because Browser depends on seekable responses, because that's
384 how browser history is implemented).
385 * Bundle BeautifulSoup 2.1.1. No more dependency pain! Note that
386 BeautifulSoup is, and always was, optional, and that mechanize
387 will eventually switch to BeautifulSoup version 3, at which
388 point it may well stop bundling BeautifulSoup. Note also that
389 the module is only used internally, and is not available as a
390 public attribute of the package. If you dare, you can import it
391 ("from mechanize import _beautifulsoup"), but beware that it
392 will go away later, and that the API of BeautifulSoup will
393 change when the upgrade to 3 happens. Also, BeautifulSoup
394 support (mainly RobustFactory) is still a little experimental
395 and buggy.
396 * Fix HTTP-EQUIV with no content attribute case (thanks Pratik
397 Dam).
398 * Fix bug with quoted META Refresh URL (thanks Nilton Volpato).
399 * Fix crash with </base> tag (yajdbgr02@...).
400 * Somebody found a server that (incorrectly) depends on HTTP
401 header case, so follow the Title-Case convention. Note that the
402 Request headers interface(s), which were (somewhat oddly -- this
403 is an inheritance from urllib2 that should really be fixed in a
404 better way than it is currently) always case-sensitive still
405 are; the only thing that changed is what actually eventually
406 gets sent over the wire.
407 * Use mechanize (not urllib) to open robots.txt. Don't consult
408 RobotFileParser instance about non-HTTP URLs.
409 * Fix OpenerDirector.retrieve(), which was very broken (thanks
410 Duncan Booth).
411 * Crash in a much more obvious way if trying to use OpenerDirector
412 after .close() .
413 * .reload() on .back() if necessary (necessary iff response was
414 not fully .read() on first .open()ing ) * Strip fragments before
415 retrieving URLs (fixed Request.get_selector() to strip fragment)
416 * Fix catching HTTPError subclasses while still preserving all
417 their response behaviour
418 * Correct over-enthusiastic documented guarantees of
419 closeable_response .
420 * Fix assumption that httplib.HTTPMessage treats dict-style
421 __setitem__ as append rather than set (where on earth did I get
422 that from?).
423 * Expose History in mechanize/__init__.py (though interface is
424 still experimental).
425 * Lots of other "internals" bugs fixed (thanks to reports /
426 patches from Benji York especially, also Titus Brown, Duncan
427 Booth, and me ;-), where I'm not 100% sure exactly when they
428 were introduced, so not listing them here in detail.
429 * Numerous other minor fixes.
430 * Some code cleanup.
431
432 2006-05-21 John J Lee <[email protected]>
433 * 0.1.2b release:
434 * mechanize now exports the whole urllib2 interface.
435 * Pull in bugfixed auth/proxy support code from Python 2.5.
436 * Bugfix: strip leading and trailing whitespace from link URLs
437 * Fix .any_response() / .any_request() methods to have ordering.
438 consistent with rest of handlers rather than coming before all
439 of them.
440 * Tell cookie-handling code about new TLDs.
441 * Remove Browser.set_seekable_responses() (they always are
442 anyway).
443 * Show in web page examples how to munge responses and how to do
444 proxy/auth.
445 * Rename 0.1.* changes document 0.1.0-changes.txt -->
446 0.1-changes.txt.
447 * In 0.1 changes document, note change of logger name from
448 "ClientCookie" to "mechanize"
449 * Add something about response objects to changes document
450 * Improve Browser.__str__
451 * Accept regexp strings as well as regexp objects when finding
452 links.
453 * Add crappy gzip transfer encoding support. This is off by
454 default and warns if you turn it on (hopefully will get better
455 later :-).
456 * A bit of internal cleanup following merge with pullparser /
457 ClientCookie.
458
459 2006-05-06 John J Lee <[email protected]>
460 * 0.1.1a release:
461 * Merge ClientCookie and pullparser with mechanize.
462 * Response object fixes.
463 * Remove accidental dependency on BeautifulSoup introduced in
464 0.1.0a (the BeautifulSoup support is still here, but
465 BeautifulSoup is not required to use mechanize).
466
467 2006-05-03 John J Lee <[email protected]>
468 * 0.1.0a release:
469 * Stop trying to record precise dates in changelog, since that's
470 silly ;-)
471 * A fair number of interface changes: see 0.1.0-changes.txt.
472 * Depend on recent ClientCookie with copy.copy()able response
473 objects.
474 * Don't do broken XHTML handling by default (need to review code
475 before switching this back on, e.g. should use a real XML parser
476 for first-try at parsing). To get the old behaviour, pass
477 i_want_broken_xhtml_support=True to mechanize.DefaultFactory /
478 .RobustFactory constructor.
479 * Numerous small bug fixes.
480 * Documentation & setup.py fixes.
481 * Don't use cookielib, to avoid having to work around Python 2.4
482 RFC 2109 bug, and to avoid my braindead thread synchronisation
483 code in cookielib :-((((( (I haven't encountered specific
484 breakage due to latter, but since it's braindead I may as well
485 avoid it).
486
487 2005-11-30 John J Lee <[email protected]>
488 * Fixed setuptools support.
489 * Release 0.0.11a.
490
491 2005-11-19 John J Lee <[email protected]>
492 * Release 0.0.10a.
493
494 2005-11-17 John J Lee <[email protected]>
495 * Fix set_handle_referer.
496
497 2005-11-12 John J Lee <[email protected]>
498 * Fix history (Gary Poster).
499 * Close responses on reload (Gary Poster).
500 * Don't depend on SSL support (Gary Poster).
501
502 2005-10-31 John J Lee <[email protected]>
503 * Add setuptools support.
504
505 2005-10-30 John J Lee <[email protected]>
506 * Don't mask AttributeError exception messages from ClientForm.
507 * Document intent of .links() vs. .get_links_iter(); Rename
508 LinksFactory method.
509 * Remove pullparser import dependency.
510 * Remove Browser.urltags (now an argument to LinksFactory).
511 * Document Browser constructor as taking keyword args only (and
512 change positional arg spec).
513 * Cleanup of lazy parsing (may fix bugs, not sure...).
514
515 2005-10-28 John J Lee <[email protected]>
516 * Support ClientForm backwards_compat switch.
517
518 2005-08-28 John J Lee <[email protected]>
519 * Apply optimisation patch (Stephan Richter).
520
521 2005-08-15 John J Lee <[email protected]>
522 * Close responses (ie. close the file handles but leave response
523 still .read()able &c., thanks to the response objects we're
524 using) ([email protected]).
525
526 2005-08-14 John J Lee <[email protected]>
527 * Add missing argument to UserAgent's _add_referer_header stub.
528 * Doc and comment improvements.
529
530 2005-06-28 John J Lee <[email protected]>
531 * Allow specifying parser class for equiv handling.
532 * Ensure correct default constructor args are passed to
533 HTTPRefererProcessor.
534 * Allow configuring details of Refresh handling.
535 * Switch to tolerant parser.
536
537 2005-06-11 John J Lee <[email protected]>
538 * Do .seek(0) after link parsing in a finally block.
539 * Regard text/xhtml as HTML.
540 * Fix 2.4-compatibility bugs.
541 * Fix spelling of '_equiv' feature string.
542
543 2005-05-30 John J Lee <[email protected]>
544 * Turn on Referer, Refresh and HTTP-Equiv handling by default.
545
546 2005-05-08 John J Lee <[email protected]>
547 * Fix .reload() to not update history (thanks to Titus Brown).
548 * Use cookielib where available
549
550 2005-03-01 John J Lee <[email protected]>
551 * Fix referer bugs: Don't send URL fragments; Don't add in Referer
552 header in redirected request unless original request had a
553 Referer header.
554
555 2005-02-19 John J Lee <[email protected]>
556 * Allow supplying own mechanize.FormsFactory, so eg. can use
557 ClientForm.XHTMLFormParser. Also allow supplying own Request
558 class, and use sensible defaults for this. Now depends on
559 ClientForm 0.1.17. Side effect is that, since we use the
560 correct Request class by default, there's (I hope) no need for
561 using RequestUpgradeProcessor in Browser._add_referer_header()
562 :-)
563
564 2005-01-30 John J Lee <[email protected]>
565 * Released 0.0.9a.
566
567 2005-01-05 John J Lee <[email protected]>
568 * Fix examples (scraped sites have changed).
569 * Fix .set_*() method boolean arguments.
570 * The .response attribute is now a method, .response()
571 * Don't depend on BaseProcessor (no longer exists).
572
573 2004-05-18 John J Lee <[email protected]>
574 * Released 0.0.8a:
575 * Added robots.txt observance, controlled by
576 * BASE element has attribute 'href', not 'uri'! (patch from Jochen
577 Knuth)
578 * Fixed several bugs in handling of Referer header.
579 * Link.__eq__ now returns False instead of raising AttributeError
580 on comparison with non-Link (patch from Jim Jewett)
581 * Removed dependencies on HTTPS support in Python and on
582 ClientCookie.HTTPRobotRulesProcessor
583
584 2004-01-18 John J Lee <[email protected]>
585 * Added robots.txt observance, controlled by
586 UserAgent.set_handle_robots(). This is now on by default.
587 * Removed set_persistent_headers() method -- just use .addheaders,
588 as in base class.
589
590 2004-01-09 John J Lee <[email protected]>
591 * Removed unnecessary dependence on SSL support in Python. Thanks
592 to Krzysztof Kowalczyk for bug report.
593 * Released 0.0.7a.
594
595 2004-01-06 John J Lee <[email protected]>
596 * Link instances may now be passed to .click_link() and
597 .follow_link().
598 * Added a new example program, pypi.py.
599
600 2004-01-05 John J Lee <[email protected]>
601 * Released 0.0.5a.
602 * If <title> tag was missing, links and forms would not be parsed.
603 Also, base element (giving base URI) was ignored. Now parse
604 title lazily, and get base URI while parsing links. Also, fixed
605 ClientForm to take note of base element. Thanks to Phillip J.
606 Eby for bug report.
607 * Released 0.0.6a.
608
609 2004-01-04 John J Lee <[email protected]>
610 * Fixed _useragent._replace_handler() to update self.handlers
611 correctly.
612 * Updated required pullparser version check.
613 * Visiting a URL now deselects form (sets self.form to None).
614 * Only first Content-Type header is now checked by
615 ._viewing_html(), if there are more than one.
616 * Stopped using getheaders from ClientCookie -- don't need it,
617 since depend on Python 2.2, which has .getheaders() method on
618 responses. Improved comments.
619 * .open() now resets .response to None. Also rearranged .open() a
620 bit so instance remains in consistent state on failure.
621 * .geturl() now checks for non-None .response, and raises Browser.
622 * .back() now checks for non-None .response, and doesn't attempt
623 to parse if it's None.
624 * .reload() no longer adds new history item.
625 * Documented tag argument to .find_link().
626 * Fixed a few places where non-keyword arguments for .find_link()
627 were silently ignored. Now raises ValueError.
628
629 2004-01-02 John J Lee <[email protected]>
630 * Use response_seek_wrapper instead of seek_wrapper, which broke
631 use of reponses after they're closed.
632 * (Fixed response_seek_wrapper in ClientCookie.)
633 * Fixed adding of Referer header. Thanks to Per Cederqvist for
634 bug report.
635 * Released 0.0.4a.
636 * Updated required ClientCookie version check.
637
638 2003-12-30 John J Lee <[email protected]>
639 * Added support for character encodings (for matching link text).
640 * Released 0.0.3a.
641
642 2003-12-28 John J Lee <[email protected]>
643 * Attribute lookups are no longer forwarded to .response --
644 you have to do it explicitly.
645 * Added .geturl() method, which just delegates to .response.
646 * Big rehash of UserAgent, which was broken. Added a test.
647 * Discovered that zip() doesn't raise an exception when its
648 arguments are of different length, so several tests could pass
649 when they should have failed. Fixed.
650 * Fixed <A/> case in ._parse_html().
651 * Released 0.0.2a.
652
653 2003-12-27 John J Lee <[email protected]>
654 * Added and improved docstrings.
655 * Browser.form is now a public attribute. Also documented
656 Browser's public attributes.
657 * Added base_url and absolute_url attributes to Link.
658 * Tidied up .open(). Relative URL Request objects are no longer
659 converted to absolute URLs -- they should probably be absolute
660 in the first place anyway.
661 * Added proper Referer handling (the handler in ClientCookie is a
662 hack that only covers a restricted case).
663 * Added click_link method, for symmetry with .click() / .submit()
664 methods (which latter apply to forms). Of these methods,
665 .click/.click_link() returns a request, and .submit/
666 .follow_link() actually .open()s the request.
667 * Updated broken example code.
668
669 2003-12-24 John J Lee <[email protected]>
670 * Modified setup.py so can easily register with PyPI.
671
672 2003-12-22 John J Lee <[email protected]>
673 * Released 0.0.1a.