Git Product home page Git Product logo

strictly-data's Introduction

strictly-data

Create a CSV of Strictly Come Dancing (UK) scores from the data in the show's Wikipedia pages.

The output from the current code is stored in output.csv.

strictly-data's People

Contributors

jongiddy avatar

Watchers

 avatar  avatar  avatar

strictly-data's Issues

Add surnames to contestants

May the names of celebrity and professional dancers to full names. Note that most entries are currently just the first name, but some entries hint at the surname (e.g. Emma B.).

Missing initial weeks

Series 7, 8, 9, and 10 are missing their initial week or two, where the dances are broken up into multiple tables.

Provide average score

The number of judges has varied from 3 to 5. Hence, the absolute score does not reflect fairly the quality of each dance. Detect the number of judges and create a new column for average score.

Superscripts break data extraction

Some table cells for couples include a footnote marker (e.g. <td>Anastacia &amp; Gorka<sup>1</sup>\n</td>. This results in 14,5,Anastacia,Gorka,,1 - no dance and a score of 1.

Using lol_html this gives three text nodes, each of which has last_in_text_node() returning true. This causes the td selector to update the state before the end of the <td> element. It is possible to suppress the inner tag text (see cloudflare/lol-html#93) but there are still the two nodes Anastacia &amp; Gorka and \n.

  • Can we identify a way to merge these using the existing code?
  • Should we move to using nth-of-type selector, remembering to deal with rowspans (e.g. 1st child is usually couple, but may be score).

Asterisk in names

8,4,Michelle Williams,Ian*,Tango,27,4,6.75,
9,7,Holly Valance,Brendan*,Rumba,34,4,8.5,
9,9,Anita Dobson,Brendan*,Cha-Cha-Cha,30,4,7.5,
The asterisk in the couple name gets through to the CSV data.

Handle group dance

Series 7 week 11 has a group dance with all the results in one row, separated by linebreaks:

<tr>
<td>Ali &amp; Brian<br />Chris &amp; Ola<br />Laila &amp; Anton<br />Natalie &amp; Vincent<br />Ricky &amp; Natalie
</td>
<td>10<br />7<br />8<br />7<br />9
</td>
<td>Viennese Waltz
</td>

Currently this is ignored, but we could handle this.

Header appears in data before each series

The serde serialization adds a header row before the rows of each series.

  • Can we suppress the header for all but the first week?
  • Can we merge all rows into a single structure to serialize at once?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.