- When parsing a URL which points to a single photo, return the
user_url
anduser_id
(if they can be deduced from the URL).
- Add a trailing slash to the
user_url
returned in album URLs. This more closely matches the URL structured used on Flickr.com.
- Throw a more informative TypeError if you pass a non-string value as
url
.
- Add support for recognising video download URLs like
/video_download.gne?id=[ID]
. - Add support for recognising static video URLs like
https://live.staticflickr.com/video/…
. - Add support for recognising Flash player video URLs like
https://www.flickr.com/apps/video/stewart.swf?photo_id=…
.
-
Add an optional
id
parameter to theUser
type.If you parse the URL for a user's photostream and use the URL that contains their NSID rather than their path alias, this ID will be included in the response. This allows for slightly faster lookups later.
- Add support for recognising URLs that use
/photo_edit.gne?id=[ID]
and/photo.gne?short=[SHORT_ID]
.
Add support for recognising URLs as the Flickr homepage.
There are lots of varieties of homepage URL that appear in e.g. links from Wikimedia Commons, and now they can be recognised:
>>> parse_flickr_url("www.flickr.com")
{"type": "homepage"}
- Fix a bug where the URL parser could throw an IndexError on URL fragments or empty strings.
-
Add a new function
find_flickr_urls_in_text
which can be used to find Flickr URLs in a block of arbitrary text. Example:>>> text = """ ... This is the help page: https://www.flickr.com/help ... ... This is a user: https://www.flickr.com/photos/mariakallin/ ... """ >>> find_flickr_urls_in_text(text) ['https://www.flickr.com/help', 'https://www.flickr.com/photos/mariakallin/']
This is useful for text analysis.
Add support for parsing more varieties of URL, based on those seen in the Wikimedia Commons snapshots, including:
- Old-style photo URLs that use
/photo/
instead of/photos/
, e.g.http://flickr.com/photo/17277074@N00/2619974961
- Photo URLs that use the
/photo_zoom.gne
path and similar.gne
paths, e.g.https://www.flickr.com/photo_zoom.gne?id=196155401&size=m
- A wide variety of
static.flickr.com
-like URLs; URLs that point to raw JPEGs rather than the photo description page
- Expand the support for parsing static URLs, e.g.
http://farm1.static.flickr.com/82/241abc183_dd0847d5c7_o.jpg
- Expand the support for parsing static URLs, e.g.
https://photos12.flickr.com/16159487_3a6615a565_b.jpg
- Add support for parsing static URLs, e.g.
https://live.staticflickr.com/65535/53381630964_63d765ee92_s.jpg
- Drop support for Python 3.7 to Python 3.11; this library now requires Python 3.12.
- Add support for pagination. All collection URLs (albums, users, groups, galleries and tags) now include a
page
parameter that tells you what page you've navigated to in the Flickr UI.
- Explicitly export the
ParseResult
type.
- Actually make the type hints available by adding the
py.typed
file.
- Add type hints that can be used for type checking with mypy and similar tools.
- Add support for Flickr Guest Pass URLs, e.g.
https://www.flickr.com/gp/realphotomatt/M195SLkj98