{"record":{"id":"7f60eb87f50fe454","repo":"soimort/you-get","slug":"flickr-extractor-is-not-supported-for-s","errorCode":null,"errorMessage":"Flickr extractor is not supported for %s.","messagePattern":"Flickr extractor is not supported for (.+?)\\.","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"src/you_get/extractors/flickr.py","lineNumber":166,"sourceCode":"        url, title = get_single_photo_url(url)\n        urls = [url]\n    else:\n        urls, title = fetch_photo_url_list(url, size)\n    index = 0\n    for url in urls:\n        mime, ext, size = url_info(url)\n        print_info('Flickr.com', title, mime, size)\n        if not info_only:\n            suffix = '[%d]' % index\n            download_urls([url], title + suffix, ext, False, output_dir, None, False, False)\n            index = index + 1\n\ndef fetch_photo_url_list(url, size):\n    for pattern in url_patterns:\n        # FIXME: fix multiple matching since the match group is dropped\n        if match1(url, pattern[0]):\n            return fetch_photo_url_list_impl(url, size, *pattern[1:])\n    raise NotImplementedError('Flickr extractor is not supported for %s.' % url)\n\ndef fetch_photo_url_list_impl(url, size, method, id_field, id_parse_func, collection_name):\n    page = get_html(url)\n    api_key = get_api_key(page)\n    ext_field = ''\n    if id_parse_func:\n        ext_field = '&%s=%s' % (id_field, id_parse_func(url, page))\n    page_number = 1\n    urls = []\n    while True:\n        call_url = tmpl_api_call % (api_key, method, ext_field, page_number)\n        photoset = json.loads(get_content_headered(call_url))[collection_name]\n        pagen = photoset['page']\n        pages = photoset['pages']\n        for info in photoset['photo']:\n            url = get_url_of_largest(info, api_key, size)\n            urls.append(url)\n        page_number = page_number + 1","sourceCodeStart":148,"sourceCodeEnd":184,"githubUrl":"https://github.com/soimort/you-get/blob/049548f3f3f35e67ba8d3181c71fdc71d11cf260/src/you_get/extractors/flickr.py#L148-L184","documentation":"Raised as NotImplementedError by fetch_photo_url_list (src/you_get/extractors/flickr.py:166). It iterates the module's url_patterns table trying to classify the URL; if no pattern's first element matches, there is no known extractor method for that URL shape and it gives up.","triggerScenarios":"Calling flickr_download with a Flickr URL that matches none of the entries in url_patterns (the supported photo/photoset/gallery/group URL forms). Examples: new URL layouts, URLs with extra path segments or different subdomains.","commonSituations":"Flickr rolling out new URL formats (e.g. new-style photo pages or migration paths); users passing a mobile or flic.kr short link the pattern list does not cover; URLs with tracking parameters changing the shape.","solutions":["Use a canonical desktop Flickr URL form known to be supported (compare with the regexes in url_patterns in flickr.py).","Expand the flickr.com URL from any short link before passing it in.","Add a new (pattern, method, id_field, parse_func, collection) entry to url_patterns for the new URL shape."],"exampleFix":"# before\nfetch_photo_url_list('https://www.flickr.com/photos/user/123456789789/some/new/path', 'o')\n# NotImplementedError: Flickr extractor is not supported for %s.\n\n# after: use the supported canonical photo URL form\nfetch_photo_url_list('https://www.flickr.com/photos/user/123456789789', 'o')","handlingStrategy":"validation","validationCode":"import re\nfrom you_get.extractors.flickr import url_patterns\n\ndef flickr_url_supported(url):\n    return any(re.match(p[0], url) for p in url_patterns)","typeGuard":null,"tryCatchPattern":"try:\n    flickr_download(url, output_dir)\nexcept NotImplementedError as e:\n    if 'Flickr extractor is not supported' in str(e):\n        expand_url_and_retry(url)  # e.g. resolve flic.kr short links first\n    else:\n        raise","preventionTips":["Normalize Flickr URLs to canonical photo/photoset forms before calling.","Resolve short links (flic.kr) yourself so the pattern table can match."],"tags":["you-get","flickr","url-pattern","not-implemented","extractor"],"backgroundTag":null,"analyzedSha":"049548f3f3f35e67ba8d3181c71fdc71d11cf260","analyzedAt":"2026-08-15T03:58:15.069Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}