You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add rate limiting to `search` (not just `get_memento`) and make the limits configurable in the `WaybackSession` constructor. Fixes#12.
Co-authored-by: Rob Brackett <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/release-history.rst
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,20 +30,34 @@ While we were at it, we renamed the ``datetime`` parameter of :meth:`wayback.Way
30
30
Features
31
31
^^^^^^^^
32
32
33
-
:attr:`wayback.Memento.headers` is now case-insensitive. The keys of the ``headers`` dict are returned with their original case when iterating, but lookups are performed case-insensitively. For example::
33
+
- :attr:`wayback.Memento.headers` is now case-insensitive. The keys of the ``headers`` dict are returned with their original case when iterating, but lookups are performed case-insensitively. For example::
- There are now built-in rate limits for calls to ``search()`` and ``get_memento()``. The default values should keep you from getting temporarily blocked by the Wayback Machine servers, but you can also adjust them when instantiating :class:`wayback.WaybackSession`:
41
+
42
+
.. code-block:: python
43
+
44
+
# Limit get_memento() calls to 2 per second (or one every 0.5 seconds):
A huge thanks to @LionSzl for implementing this. (:issue:`12`)
39
53
40
54
41
55
Fixes & Maintenance
42
56
^^^^^^^^^^^^^^^^^^^
43
57
44
-
All API requests to archive.org now use HTTPS instead of HTTP. Thanks to @sundhaug92 for calling this out. (:issue:`81`)
58
+
- All API requests to archive.org now use HTTPS instead of HTTP. Thanks to @sundhaug92 for calling this out. (:issue:`81`)
45
59
46
-
Headers from the original archived response are again included in :attr:`wayback.Memento.headers`. As part of this, the ``headers`` attribute is now case-insensitive (see new features above), since the Internet Archive servers now return headers with different cases depending on how the request was made. (:issue:`98`)
60
+
- Headers from the original archived response are again included in :attr:`wayback.Memento.headers`. As part of this, the ``headers`` attribute is now case-insensitive (see new features above), since the Internet Archive servers now return headers with different cases depending on how the request was made. (:issue:`98`)
0 commit comments