Skip to content

Instantly share code, notes, and snippets.

@slotix
Last active April 10, 2020 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slotix/dccdabad485a38918bd4e48cc0226e38 to your computer and use it in GitHub Desktop.
Save slotix/dccdabad485a38918bd4e48cc0226e38 to your computer and use it in GitHub Desktop.
COVID-19 information payload for Dataflow Kit
{
"name":"COVID-19",
"request":{
"url":"https://www.worldometers.info/coronavirus/",
"actions":[
],
"type":"chrome"
},
"commonParent":"tr[role]",
"fields":[
{
"name":"Country",
"selector":"#main_table_countries_today thead+ tbody td:nth-child(1)",
"attrs":[
"text"
],
"type":1,
"filters":[
{
"name":"trim"
}
]
},
{
"name":"Total Cases",
"selector":"#main_table_countries_today .sorting_1",
"attrs":[
"text"
],
"type":1,
"filters":[
{
"name":"trim"
}
]
},
{
"name":"New Cases",
"selector":"#main_table_countries_today .sorting_1+ td",
"attrs":[
"text"
],
"type":1,
"filters":[
{
"name":"trim"
}
]
},
{
"name":"Total Deaths",
"selector":"#main_table_countries_today .sorting_1~ td:nth-child(4)",
"attrs":[
"text"
],
"type":1,
"filters":[
{
"name":"trim"
}
]
},
{
"name":"New Deaths",
"selector":"#main_table_countries_today thead+ tbody td:nth-child(5)",
"attrs":[
"text"
],
"type":1,
"filters":[
{
"name":"trim"
}
]
},
{
"name":"Total Recovered",
"selector":"#main_table_countries_today thead+ tbody td:nth-child(6)",
"attrs":[
"text"
],
"type":1,
"filters":[
{
"name":"trim"
}
]
},
{
"name":"Active Cases",
"selector":"#main_table_countries_today thead+ tbody td:nth-child(7)",
"attrs":[
"text"
],
"type":1,
"filters":[
{
"name":"trim"
}
]
}
],
"format":"json"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment