Skip to content

[ENH] pandas.read_html argument to interpret hyperlinks as links (not merely text) #13141

Closed
@zeluspudding

Description

@zeluspudding

For starters I'd just like to share that pandas is AWESOME! Thank you to all who contribute and make this lean, mean number crunching machine available to others like me.

pandas.read_html is super convenient for making dataframes from the web! The power of the web is that it's just that... a web of many highly interconnected data chunks. Being able to get the hyperlinks in an HTML table instead of the plain text that is hyperlinked would be a great productivity boost for web scraping.

Take the example of getting links to SEC forms. Here, one is probably more interested in getting the link to an insider trading disclosure form rather then merely the type of form (typically form 4).

Baking this functionality into read_html also averts the need to double parse HTML as in this StackOverflow post - http://stackoverflow.com/questions/31771619/html-table-to-pandas-table-info-inside-html-tags

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIO HTMLread_html, to_html, Styler.apply, Styler.applymap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions