{"id":19607147,"url":"https://github.com/robocorp/example-html-table-robot","last_synced_at":"2025-07-04T03:41:04.582Z","repository":{"id":53727851,"uuid":"339045438","full_name":"robocorp/example-html-table-robot","owner":"robocorp","description":"This robot demonstrates how to work with HTML tables using Beautiful Soup and RPA Framework.","archived":false,"fork":false,"pushed_at":"2024-01-03T11:54:01.000Z","size":28,"stargazers_count":8,"open_issues_count":2,"forks_count":4,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-27T19:46:19.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robocorp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-02-15T10:46:24.000Z","updated_at":"2024-04-12T21:39:16.000Z","dependencies_parsed_at":"2024-01-03T12:04:20.451Z","dependency_job_id":null,"html_url":"https://github.com/robocorp/example-html-table-robot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robocorp/example-html-table-robot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fexample-html-table-robot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fexample-html-table-robot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fexample-html-table-robot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fexample-html-table-robot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robocorp","download_url":"https://codeload.github.com/robocorp/example-html-table-robot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fexample-html-table-robot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263442336,"owners_count":23467214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T10:09:06.447Z","updated_at":"2025-07-04T03:41:04.532Z","avatar_url":"https://github.com/robocorp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Working with HTML tables\n\nThis robot demonstrates how to work with HTML tables.\n\n## The example HTML table\n\nWe use the table at https://www.w3schools.com/html/html_tables.asp as an example:\n\n```html\n\u003ctable id=\"customers\"\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003cth\u003eCompany\u003c/th\u003e\n      \u003cth\u003eContact\u003c/th\u003e\n      \u003cth\u003eCountry\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eAlfreds Futterkiste\u003c/td\u003e\n      \u003ctd\u003eMaria Anders\u003c/td\u003e\n      \u003ctd\u003eGermany\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eCentro comercial Moctezuma\u003c/td\u003e\n      \u003ctd\u003eFrancisco Chang\u003c/td\u003e\n      \u003ctd\u003eMexico\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eErnst Handel\u003c/td\u003e\n      \u003ctd\u003eRoland Mendel\u003c/td\u003e\n      \u003ctd\u003eAustria\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eIsland Trading\u003c/td\u003e\n      \u003ctd\u003eHelen Bennett\u003c/td\u003e\n      \u003ctd\u003eUK\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eLaughing Bacchus Winecellars\u003c/td\u003e\n      \u003ctd\u003eYoshi Tannamuri\u003c/td\u003e\n      \u003ctd\u003eCanada\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eMagazzini Alimentari Riuniti\u003c/td\u003e\n      \u003ctd\u003eGiovanni Rovelli\u003c/td\u003e\n      \u003ctd\u003eItaly\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n```\n\n## The HTML parser library: Beautiful Soup\n\nThe robot uses the `beautifulsoup4` and `robocorp` dependencies in the `conda.yaml` configuration file.\n\n\u003e [Beautiful Soup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/) is a Python library for pulling data out of HTML and XML files. It works with your favorite parser to provide idiomatic ways of navigating, searching, and modifying the parse tree. It commonly saves programmers hours or days of work.\n\n\u003e We use a python dataclass to store the table data, for more complex examples use [Pandas](https://pypi.org/project/pandas/).\n\n## The HTML table custom parser library\n\n\u003e HTML tables come in many shapes and forms. This example uses a well-formatted and straightforward table. More complex tables might require more effort to parse. Still, the idea is the same: Read and parse the HTML. Return a generic data structure that is easy to work with.\n\nThe `get_html_table` function returns the example HTML table markup from https://www.w3schools.com/html/html_tables.asp.\n\nThe `read_table_from_html` is provided by the `html_tables.py` library. It parses and returns the given HTML table as a `Table` structure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobocorp%2Fexample-html-table-robot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobocorp%2Fexample-html-table-robot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobocorp%2Fexample-html-table-robot/lists"}