4.2. Load table data from a web page

Following example shows how to extract TableData from a web page by using TableUrlLoader class.

Sample Code:
Load table from a web page
import io

import pytablereader as ptr
import pytablewriter as ptw

loader = ptr.TableUrlLoader(

writer = ptw.TableWriterFactory.create_from_format_name("rst")
writer.stream = io.open("load_url_result.rst", "w", encoding=loader.encoding)
for table_data in loader.load():
$ ./load_table_from_url.py
$ head load_url_result.rst -n 8
.. table:: List of unit testing frameworks - Wikipedia_html1

    |  Name   |xUnit|Source|        Remarks         |
    |ABAP Unit|Yes  |[1]   |since SAP NetWeaver 2004|