Skip to content

Instantly share code, notes, and snippets.

@suntong
Last active March 9, 2019 19:37
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 suntong/1a615e0cc1eb7fa96e3974ffb84a60c3 to your computer and use it in GitHub Desktop.
Save suntong/1a615e0cc1eb7fa96e3974ffb84a60c3 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var scrapped = [
{
"title": "Moonshiners S08E14 100 Proof Heritage Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Fresh Off The Boat S05E17 Hdtv X264-Sva",
"poster": "Freedom35"
},
{
"title": "The Grand Tour S03E09 1080P Web H264 Amcon",
"poster": "darkb0t80"
},
{
"title": "Swamp People S10E06 Web H264-Tbs",
"poster": "Freedom35"
},
{
"title": "After Life S01E02 Web X264-Inflate",
"poster": "Freedom35"
},
{
"title": "Rupauls Drag Race S11E02 Web X264-Secretos",
"poster": "Freedom35"
},
{
"title": "The Cool Kids S01E15 Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Curfew S01E03 Hdtv X264-Mtb",
"poster": "Freedom35"
},
{
"title": "Moonshiners S08E13 Mobile Moonshine Madness Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Conan (2019) 03 07 Judd Apatow Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Sesame Street S49E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Dont Be Tardy S07E05 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Ducktales 2017 S02E07 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "The Young And The Restless 2019 03 08 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Lost Girl Season (1-3) Complete 720p Hdtv X264-mixed",
"poster": "Wericks"
},
{
"title": "Real Time With Bill Maher 2019 03 08 Hdtv X264-Aaf",
"poster": "Alex5511"
},
{
"title": "Real Time With Bill Maher S17E07 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "This Is Not Happening S07E06 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Losers S01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Tin Star S02 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "The Cool Kids S01E15 Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Curfew S01E03 Hdtv X264-Mtb",
"poster": "Freedom35"
},
{
"title": "Moonshiners S08E13 Mobile Moonshine Madness Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Conan (2019) 03 07 Judd Apatow Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Sesame Street S49E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Dont Be Tardy S07E05 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Ducktales 2017 S02E07 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "The Young And The Restless 2019 03 08 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Lost Girl Season (1-3) Complete 720p Hdtv X264-mixed",
"poster": "Wericks"
},
{
"title": "Real Time With Bill Maher 2019 03 08 Hdtv X264-Aaf",
"poster": "Alex5511"
},
{
"title": "Real Time With Bill Maher S17E07 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "This Is Not Happening S07E06 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Losers S01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Tin Star S02 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E09 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E06 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E10 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Rebel Complete S01",
"poster": "fenipos"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E05 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E08 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E07 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Qi S16E18 Vg Part Two Web H264-Kompost",
"poster": "Alex5511"
},
{
"title": "Little Lady Fauntleroy Web-Dl X264 Aac Mvgroup Forum",
"poster": "Alex5511"
},
{
"title": "The Cool Kids S01E15 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "The Elegant Gentlemans Guide To Knife Fighting S01 1080P Web-Dl Dd5 1 H264-Ntb",
"poster": "knolan"
},
{
"title": "Hang Ups S01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Tin Star S02E01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Coop And Cami Ask The World S01E16 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Bizaardvark S03E16 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Losers S01E01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "This Is Not Happening 2015 S04E16 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Dont Be Tardy S07E05 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Last Man Standing S07E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Stephen Colbert 2019 03 08 Cory Booker Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "The Story Of God With Morgan Freeman S03E01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "The Blacklist S06E10 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Proven Innocent S01 X264 | 720P | Xvid | 480P | 1080P Hevc X265 / E01-04",
"poster": "Seraf"
},
{
"title": "Fresh Off The Boat S05E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Speechless S03E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Lost Treasures Of The Maya S01E01 Secrets Of The Snake Altar Webrip X264-Caffeine",
"poster": "Alex5511"
}
]
// console.log(scrapped)
console.log(scrapped.filter(d => !/\bs\d+e\d+\b|\d{4}\W+\d+\W+\d+/i.test(d.title)))
// End
</script>
<script id="jsbin-source-javascript" type="text/javascript">var scrapped = [
{
"title": "Moonshiners S08E14 100 Proof Heritage Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Fresh Off The Boat S05E17 Hdtv X264-Sva",
"poster": "Freedom35"
},
{
"title": "The Grand Tour S03E09 1080P Web H264 Amcon",
"poster": "darkb0t80"
},
{
"title": "Swamp People S10E06 Web H264-Tbs",
"poster": "Freedom35"
},
{
"title": "After Life S01E02 Web X264-Inflate",
"poster": "Freedom35"
},
{
"title": "Rupauls Drag Race S11E02 Web X264-Secretos",
"poster": "Freedom35"
},
{
"title": "The Cool Kids S01E15 Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Curfew S01E03 Hdtv X264-Mtb",
"poster": "Freedom35"
},
{
"title": "Moonshiners S08E13 Mobile Moonshine Madness Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Conan (2019) 03 07 Judd Apatow Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Sesame Street S49E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Dont Be Tardy S07E05 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Ducktales 2017 S02E07 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "The Young And The Restless 2019 03 08 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Lost Girl Season (1-3) Complete 720p Hdtv X264-mixed",
"poster": "Wericks"
},
{
"title": "Real Time With Bill Maher 2019 03 08 Hdtv X264-Aaf",
"poster": "Alex5511"
},
{
"title": "Real Time With Bill Maher S17E07 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "This Is Not Happening S07E06 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Losers S01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Tin Star S02 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "The Cool Kids S01E15 Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Curfew S01E03 Hdtv X264-Mtb",
"poster": "Freedom35"
},
{
"title": "Moonshiners S08E13 Mobile Moonshine Madness Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Conan (2019) 03 07 Judd Apatow Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Sesame Street S49E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Dont Be Tardy S07E05 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Ducktales 2017 S02E07 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "The Young And The Restless 2019 03 08 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Lost Girl Season (1-3) Complete 720p Hdtv X264-mixed",
"poster": "Wericks"
},
{
"title": "Real Time With Bill Maher 2019 03 08 Hdtv X264-Aaf",
"poster": "Alex5511"
},
{
"title": "Real Time With Bill Maher S17E07 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "This Is Not Happening S07E06 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Losers S01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Tin Star S02 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E09 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E06 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E10 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Rebel Complete S01",
"poster": "fenipos"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E05 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E08 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E07 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Qi S16E18 Vg Part Two Web H264-Kompost",
"poster": "Alex5511"
},
{
"title": "Little Lady Fauntleroy Web-Dl X264 Aac Mvgroup Forum",
"poster": "Alex5511"
},
{
"title": "The Cool Kids S01E15 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "The Elegant Gentlemans Guide To Knife Fighting S01 1080P Web-Dl Dd5 1 H264-Ntb",
"poster": "knolan"
},
{
"title": "Hang Ups S01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Tin Star S02E01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Coop And Cami Ask The World S01E16 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Bizaardvark S03E16 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Losers S01E01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "This Is Not Happening 2015 S04E16 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Dont Be Tardy S07E05 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Last Man Standing S07E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Stephen Colbert 2019 03 08 Cory Booker Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "The Story Of God With Morgan Freeman S03E01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "The Blacklist S06E10 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Proven Innocent S01 X264 | 720P | Xvid | 480P | 1080P Hevc X265 / E01-04",
"poster": "Seraf"
},
{
"title": "Fresh Off The Boat S05E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Speechless S03E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Lost Treasures Of The Maya S01E01 Secrets Of The Snake Altar Webrip X264-Caffeine",
"poster": "Alex5511"
}
]
// console.log(scrapped)
console.log(scrapped.filter(d => !/\bs\d+e\d+\b|\d{4}\W+\d+\W+\d+/i.test(d.title)))
// End
</script></body>
</html>
var scrapped = [
{
"title": "Moonshiners S08E14 100 Proof Heritage Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Fresh Off The Boat S05E17 Hdtv X264-Sva",
"poster": "Freedom35"
},
{
"title": "The Grand Tour S03E09 1080P Web H264 Amcon",
"poster": "darkb0t80"
},
{
"title": "Swamp People S10E06 Web H264-Tbs",
"poster": "Freedom35"
},
{
"title": "After Life S01E02 Web X264-Inflate",
"poster": "Freedom35"
},
{
"title": "Rupauls Drag Race S11E02 Web X264-Secretos",
"poster": "Freedom35"
},
{
"title": "The Cool Kids S01E15 Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Curfew S01E03 Hdtv X264-Mtb",
"poster": "Freedom35"
},
{
"title": "Moonshiners S08E13 Mobile Moonshine Madness Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Conan (2019) 03 07 Judd Apatow Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Sesame Street S49E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Dont Be Tardy S07E05 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Ducktales 2017 S02E07 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "The Young And The Restless 2019 03 08 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Lost Girl Season (1-3) Complete 720p Hdtv X264-mixed",
"poster": "Wericks"
},
{
"title": "Real Time With Bill Maher 2019 03 08 Hdtv X264-Aaf",
"poster": "Alex5511"
},
{
"title": "Real Time With Bill Maher S17E07 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "This Is Not Happening S07E06 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Losers S01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Tin Star S02 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "The Cool Kids S01E15 Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Curfew S01E03 Hdtv X264-Mtb",
"poster": "Freedom35"
},
{
"title": "Moonshiners S08E13 Mobile Moonshine Madness Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Conan (2019) 03 07 Judd Apatow Web X264-Tbs",
"poster": "Freedom35"
},
{
"title": "Sesame Street S49E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Dont Be Tardy S07E05 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Ducktales 2017 S02E07 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "The Young And The Restless 2019 03 08 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Lost Girl Season (1-3) Complete 720p Hdtv X264-mixed",
"poster": "Wericks"
},
{
"title": "Real Time With Bill Maher 2019 03 08 Hdtv X264-Aaf",
"poster": "Alex5511"
},
{
"title": "Real Time With Bill Maher S17E07 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "This Is Not Happening S07E06 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Losers S01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Tin Star S02 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E09 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E06 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E10 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Rebel Complete S01",
"poster": "fenipos"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E05 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E08 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Shakespeare And Hathaway Private Investigators S02E07 Hdtv X264-Mtb",
"poster": "Alex5511"
},
{
"title": "Qi S16E18 Vg Part Two Web H264-Kompost",
"poster": "Alex5511"
},
{
"title": "Little Lady Fauntleroy Web-Dl X264 Aac Mvgroup Forum",
"poster": "Alex5511"
},
{
"title": "The Cool Kids S01E15 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "The Elegant Gentlemans Guide To Knife Fighting S01 1080P Web-Dl Dd5 1 H264-Ntb",
"poster": "knolan"
},
{
"title": "Hang Ups S01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Tin Star S02E01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Coop And Cami Ask The World S01E16 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Bizaardvark S03E16 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Losers S01E01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "This Is Not Happening 2015 S04E16 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Dont Be Tardy S07E05 Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "Last Man Standing S07E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Stephen Colbert 2019 03 08 Cory Booker Web X264-Tbs",
"poster": "Alex5511"
},
{
"title": "The Story Of God With Morgan Freeman S03E01 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "The Blacklist S06E10 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "Proven Innocent S01 X264 | 720P | Xvid | 480P | 1080P Hevc X265 / E01-04",
"poster": "Seraf"
},
{
"title": "Fresh Off The Boat S05E17 Webrip X264-Ion10",
"poster": "Alex5511"
},
{
"title": "[NF+RG] Last Man Standing 2011 Season 07 | S07E17 / 720p / 1080p / x265 / x264 ",
"poster": "Alex5511"
},
{
"title": "[CNU|FF|NF|OL|RG] Blindspot Seasons 01-04 | S04E14 HDTV/ 720p/ x265",
"poster": "Alex5511"
}
]
// console.log(scrapped)
//console.log(scrapped.filter(d => !/\bs\d+e\d+\b|\d{4}\W+\d+\W+\d+/i.test(d.title)))
function wash(data) {
return data.filter(d => !/\bs\d+e\d+\b|\d{4}\W+\d+\W+\d+/i.test(d.title)).
concat(data.filter(d => /\bs\d+e\d+\b/i.test(d.title)).filter(d => /\bSeasons*\b/i.test(d.title)))
}
console.log(wash(scrapped))
// End
@suntong
Copy link
Author

suntong commented Mar 9, 2019

[[object Object] {
  poster: "Wericks",
  title: "Lost Girl Season (1-3) Complete 720p Hdtv X264-mixed"
}, [object Object] {
  poster: "Alex5511",
  title: "Losers S01 Webrip X264-Ion10"
}, [object Object] {
  poster: "Alex5511",
  title: "Tin Star S02 Webrip X264-Ion10"
}, [object Object] {
  poster: "Wericks",
  title: "Lost Girl Season (1-3) Complete 720p Hdtv X264-mixed"
}, [object Object] {
  poster: "Alex5511",
  title: "Losers S01 Webrip X264-Ion10"
}, [object Object] {
  poster: "Alex5511",
  title: "Tin Star S02 Webrip X264-Ion10"
}, [object Object] {
  poster: "fenipos",
  title: "Rebel Complete S01"
}, [object Object] {
  poster: "Alex5511",
  title: "Little Lady Fauntleroy Web-Dl X264 Aac Mvgroup Forum"
}, [object Object] {
  poster: "knolan",
  title: "The Elegant Gentlemans Guide To Knife Fighting S01 1080P Web-Dl Dd5 1 H264-Ntb"
}, [object Object] {
  poster: "Alex5511",
  title: "Hang Ups S01 Webrip X264-Ion10"
}, [object Object] {
  poster: "Seraf",
  title: "Proven Innocent S01 X264 | 720P | Xvid | 480P | 1080P Hevc X265 / E01-04"
}, [object Object] {
  poster: "Alex5511",
  title: "[NF+RG] Last Man Standing 2011 Season 07 | S07E17 / 720p / 1080p / x265 / x264 "
}, [object Object] {
  poster: "Alex5511",
  title: "[CNU|FF|NF|OL|RG] Blindspot Seasons 01-04 | S04E14 HDTV/ 720p/ x265"
}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment