Python: No Tables Found Matching Pattern '.+'
I am trying to do is export this table as a CSV for all 7 pages of 100 rows each within a Python script but an running into this error below the script. 'http://www.nhl.com/stats/
Solution 1:
This site wont work with pandas.read_html
.
According to pandas documentation:
This function searches for <table> elements and only for <tr> and <th> rows and <td> elements within each <tr> or <th> element in the table. <td> stands for “table data”.
But site you are trying to parse uses <div> elements for structuring data into the table:
Hence, you will need custom parsing solution to read data from this site.
Post a Comment for "Python: No Tables Found Matching Pattern '.+'"