def get_author_book_edition(book_tr):
    "Get the edition ``<a>`` element from a table ``<tr>`` element from an author page.\n\n    Args:\n        book_tr (bs4.element.Tag): ``<tr>`` book element.\n\n    Returns:\n        bs4.element.Tag: book edition ``<a>`` element.\n\n    Examples::\n        >>> for book_tr in scrape_author_books(soup):\n        ...     book_edition = get_author_book_edition(book_tr)\n        ...     if book_edition:\n        ...         print(book_edition.text, book_edition.get('href'))\n        ...         print()\n            493 editions /work/editions/1385044-the-bell-jar\n            80 editions /work/editions/1185316-ariel\n            30 editions /work/editions/1003095-the-collected-poems\n            45 editions /work/editions/3094683-the-unabridged-journals-of-sylvia-plath\n            ...\n\n    "
    book_details = book_tr.find('span', attrs={'class': 'greyText smallText uitext'})
    return book_details.find('a', attrs={'class': 'greyText'})
Get the edition ``<a>`` element from a table ``<tr>`` element from an author page.

Args:
    book_tr (bs4.element.Tag): ``<tr>`` book element.

Returns:
    bs4.element.Tag: book edition ``<a>`` element.

Examples::
    >>> for book_tr in scrape_author_books(soup):
    ...     book_edition = get_author_book_edition(book_tr)
    ...     if book_edition:
    ...         print(book_edition.text, book_edition.get('href'))
    ...         print()
        493 editions /work/editions/1385044-the-bell-jar
        80 editions /work/editions/1185316-ariel
        30 editions /work/editions/1003095-the-collected-poems
        45 editions /work/editions/3094683-the-unabridged-journals-of-sylvia-plath
        ...
def get_author_book_edition(book_tr):
    "Get the edition ``<a>`` element from a table ``<tr>`` element from an author page.\n\n    Args:\n        book_tr (bs4.element.Tag): ``<tr>`` book element.\n\n    Returns:\n        bs4.element.Tag: book edition ``<a>`` element.\n\n    Examples::\n        >>> for book_tr in scrape_author_books(soup):\n        ...     book_edition = get_author_book_edition(book_tr)\n        ...     if book_edition:\n        ...         print(book_edition.text, book_edition.get('href'))\n        ...         print()\n            493 editions /work/editions/1385044-the-bell-jar\n            80 editions /work/editions/1185316-ariel\n            30 editions /work/editions/1003095-the-collected-poems\n            45 editions /work/editions/3094683-the-unabridged-journals-of-sylvia-plath\n            ...\n\n    "
    book_details = book_tr.find('span', attrs={'class': 'greyText smallText uitext'})
    return book_details.find('a', attrs={'class': 'greyText'})