Skip to content

Instantly share code, notes, and snippets.

@ryanwarsaw
Last active August 29, 2015 14:26
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 ryanwarsaw/3cf5e07f39fb63ab5d08 to your computer and use it in GitHub Desktop.
Save ryanwarsaw/3cf5e07f39fb63ab5d08 to your computer and use it in GitHub Desktop.
[
{
"id": "username",
"selector": ".page-header>h1>span",
"type": "single"
},
{
"id": "stats",
"selector": "h2>small",
"cases": [
{ "name": "globalKills", "identifiedByText": "kills" },
{ "name": "globalDeaths", "identifiedByText": "deaths" },
{ "name": "friendsCount", "identifiedByText": "friends" }
{ "name": "globalKdRatio", "identifiedByText": "kd" },
{ "name": "globalKkRatio", "identifiedByText": "kk" },
{ "name": "severJoins", "identifiedByText": "joins" },
{ "name": "globalDaysPlayed", "identifiedByText": "played" },
{ "name": "raindrops", "identifiedByText": "raindrops", "attribute": "title", "filter": "[0-9]" }
],
"target": "h2",
"type": "map"
},
{
"id": "statsPage",
"selector": ".span6>h3>small",
"cases": [
{ "name": "forumPosts", "identifiedByText": "posts" },
{ "name": "forumTopics", "identifiedByText": "topics" },
{ "name": "projectAresKills", "identifiedByText": "kills", "index": 0 },
{ "name": "projectAresDeaths", "identifiedByText": "deaths", "index": 0 },
{ "name": "projectAresKdRatio", "identifiedByText": "kd", "index": 0 },
{ "name": "projectAresKkRatio", "identifiedByText": "kk", "index": 0 },
{ "name": "projectAresDaysPlayed", "identifiedByText": "played", "index": 0 },
{ "name": "projectAresDaysObserved", "identifiedByText": "observed", "index": 0 },
{ "name": "blitzKills", "identifiedByText": "kills", "index": 1 },
{ "name": "blitzDeaths", "identifiedByText": "deaths", "index": 1 },
{ "name": "blitzKdRatio", "identifiedByText": "kd", "index": 1 },
{ "name": "blitzKkRatio", "identifiedByText": "kk", "index": 1 },
{ "name": "blitzDaysPlayed", "identifiedByText": "played", "index": 1 },
{ "name": "blitzDaysObserved", "identifiedByText": "observed", "index": 1 },
{ "name": "ghostSquadronKills", "identifiedByText": "kills", "index": 2 },
{ "name": "ghostSquadronDeaths", "identifiedByText": "deaths", "index": 2 },
{ "name": "ghostSquadronKdRatio", "identifiedByText": "kd", "index": 2 },
{ "name": "ghostSquadronKkRatio", "identifiedByText": "kk", "index": 2 },
{ "name": "ghostSquadronDaysPlayed", "identifiedByText": "played", "index": 2 },
{ "name": "ghostSquadronDaysObserved", "identifiedByText": "observed", "index": 2 }
],
"target": ".span6>h3",
"type": "map"
},
{
"id": "objectives",
"selector": ".span12>h2>small",
"cases": [
{ "name": "monuments", "identifiedByText": "monuments" },
{ "name": "wools", "identifiedByText": "wools" },
{ "name": "cores", "identifiedByText": "cores" }
],
"target": ".span12>h2",
"type": "map"
},
{
"id": "profileInfo",
"select": ".span6>h6",
"cases": [
{ "name": "gender", "identifiedByText": "gender" },
{ "name": "location", "identifiedByText": "location" },
{ "name": "occupation", "identifiedByText": "occupation" },
{ "name": "interests", "identifiedByText": "interests" },
{ "name": "biography", "identifiedByText": "about" }
],
"target": "pre",
"type": "map"
},
{
"id": "profileLinks",
"select": ".span4>h6",
"cases": [
{ "name": "skypeHandle", "identifiedByText": "skype", "select": ".span4>blockquote>p>a" },
{ "name": "twitterHandle", "identifiedByText": "twitter, "select": ".span4>blockquote>p>a" },
{ "name": "facebookHandle", "identifiedByText": "facebook" },
{ "name": "steamHandle", "identifiedByText": "steam" },
{ "name": "twitchHandle", "identifiedByText": "twitch" },
{ "name": "githubHandle", "identifiedByText": "github" },
{ "name": "redditHandle", "identifiedByText": "reddit" }
],
"target": "blockquote>p>a",
"type": "map"
},
{
"id": "friends",
"select": ".span2 .avatar",
"attribute": "title",
"type": "list"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment