Skip to content

Instantly share code, notes, and snippets.

@matthewpizza
Last active August 7, 2019 02:24
Show Gist options
  • Save matthewpizza/e6da6852552e3c1f6ebce3d2e94e20aa to your computer and use it in GitHub Desktop.
Save matthewpizza/e6da6852552e3c1f6ebce3d2e94e20aa to your computer and use it in GitHub Desktop.
title year character
The Climbers 2019
The Mystery of Dragon Seal: Journey to China 2019 Master
The Knight of Shadows: Between Yin and Yang 2019 Pu Songling
Namiya 2017 Namiya
Bleeding Steel 2017 Lin Dong
On the Scene with Lindalee 2017
The Lego Ninjago Movie 2017 Master Wu / Mr. Liu (voice)
WildAid: Jackie Chan & Pangolins 2017 Kung Fu instructor
The Nut Job 2: Nutty by Nature 2017 Mr. Feng (voice)
Kung Fu Yoga 2017 Jack
Railroad Tigers 2016 Ma Yuan
The Master 2016 Sensei Wu (voice)
Skiptrace 2016 Bennie Chan
Kung Fu Panda 3 2016 Monkey (voice)
Monkey King: Hero Is Back 2015 Monkey King (English version, voice)
Dragon Blade 2015 Huo An
As the Light Goes Out 2014 Fireman in TV ad
Police Story: Lockdown 2013 Zhong Wen
Personal Tailor 2013
The Unbelievable 2013 Mr. Z
Chinese Zodiac 2012 Asian Hawk
1911 2011 Huang Xing
Kung Fu Panda 2 2011 Monkey (voice)
Shaolin 2011 Wudao
Kung Fu Panda Holiday 2010 Monkey (voice)
The Legend of Silk Boy 2010 Xu Rongcun (English version, voice)
The Karate Kid 2010 Mr. Han
Little Big Soldier 2010 The Soldier
The Spy Next Door 2010 Bob Ho
The Founding of a Republic 2009 Li Jishen's Interviewer
Looking for Jackie 2009 Jackie Chan
Shinjuku Incident 2009 Steelhead
Kung Fu Panda: Legendary Warriors 2008 Master Monkey (voice)
Kung Fu Panda 2008 Monkey (voice)
The Forbidden Kingdom 2008 Lu Yan / Old Hop
Rush Hour 3 2007 Lee
Rob-B-Hood 2006 Thongs
The Myth 2005 Meng Yi / Jack
New Police Story 2004 Senior Insp. Chan Kwok-Wing
The Twins Effect II 2004 Lord of Armour Wei Cheng
Around the World in 80 Days 2004 Passepartout / Lau Xing
Enter the Phoenix 2004 Client of Julie (Cameo)
The Medallion 2003 Eddie Yang
The Twins Effect 2003 Jackie Fong
Shanghai Knights 2003 Chon Wang
The Tuxedo 2002 Jimmy Tong
Rush Hour 2 2001 Lee
The Accidental Spy 2001 Buck Yuen
Shanghai Noon 2000 Chon Wang
Gen-X Cops 1999 Poor Fisherman (uncredited)
King of Comedy 1999 Stunt double on set (uncredited)
Gorgeous 1999 C.N. Chan
Rush Hour 1998 Lee
Who Am I? 1998 Who Am I
An Alan Smithee Film: Burn Hollywood Burn 1997 Jackie Chan
Mr. Nice Guy 1997 Jackie
Warren G feat. Adina Howard: What's Love Got to Do with It 1996
Police Story 4: First Strike 1996 Insp. Chan Ka Kui
Thunderbolt 1995 Chan Foh To
Rumble in the Bronx 1995 Keung
Drunken Master II 1994 Wong Fei-hung
Supercop 2 1993 Inspector Chan
Crime Story 1993 Inspector Eddie Chan
City Hunter 1993 Ryu Saeba
Police Story 3: Super Cop 1992 Insp. Chan Ka Kui
The Twin Dragons 1992 Ma Yau / Die Hard
A Kid from Tibet 1991 Cameo Appearance
Armour of God 2: Operation Condor 1991 Asian Hawk / Condor / Jackie
Island of Fire 1990 Lung / Steve Tong
Mr. Canton and Lady Rose 1989 'Charlie' Cheng Wah Kuo
Police Story 2 1988 Chan Ka Kui
Dragons Forever 1988 Jackie Lung
Project A 2 1987 Sergeant Dragon Ma Yue Lung
Armour of God 1986 Asian Hawk
Naughty Boys 1986 Prisoner
Police Story 1985 Chan Ka Kui
Heart of a Dragon 1985 Ted / Tat Fung
Twinkle Twinkle Lucky Stars 1985 Muscles
The Protector 1985 Billy Wong
My Lucky Stars 1985 Muscles
Wheels on Meals 1984 Thomas
Cannonball Run II 1984 Jackie Chan, Mitsubishi Engineer
Pom Pom 1984 Motorcycle Cop #2
Project A 1983 Sergeant Dragon Ma Yue Lung
Winners & Sinners 1983 CID 07
Fearless Hyena 2 1983 Chan Lung (as Jacky Chan)
Fantasy Mission Force 1983 Sammy (as Jacky Chan)
Dragon Lord 1982 Dragon
The Cannonball Run 1981 Subaru Driver #1
Battle Creek Brawl 1980 Jerry Kwan
The Young Master 1980 Dragon
Dragon Fist 1979 Tong Huo-wan
The Fearless Hyena 1979 Shing Lung (as Jacky Chan)
Bruce and Shao-lin Kung Fu 2 1978 General Kawasaki's Aide
Spiritual Kung Fu 1978 Yi-Lang
Drunken Master 1978 Wong Fei-Hung (as Jacky Chan)
Half a Loaf of Kung Fu 1978 Jiang (as Jacky Chan)
Magnificent Bodyguards 1978 Lord Ting Chung
Snake and Crane Arts of Shaolin 1978 Hsu Yin-Fung (as Jacky Chan)
Snake in the Eagle's Shadow 1978 Chien Fu (as Lung Cheng)
To Kill with Intrigue 1977 Lei Shao-feng (as Chen Lung)
Shaolin Wooden Men 1976 (as Jacky Chan)
The Killer Meteors 1976 Hua Wu Bin
Shao Lin men 1976 Tan Feng (as Chan Yuan Lung)
New Fist of Fury 1976 A Lung (as Chen Yuen Lung)
The Himalayan 1976 Tseng's Man (uncredited)
Pai an jing ji 1975 Secretary Chen (as Chen Yuen Lung)
Hua fei man cheng chun 1975 Hsiao Tang (as Yuan Lung Chen)
The Golden Lotus 1974 Pear Seller Brother Yun (as Yuan Lung Chen)
E hu cun 1974 Extra (uncredited)
Snake Fist Fighter 1973 Jackie (as Yuan Lung Chen)
Supermen Against the Orient 1973 Extra (uncredited)
Enter the Dragon 1973 Thug in Prison (uncredited)
Dragons of Death 1973 Guard (as Chen Yuen Lung)
Village on Fire 1973 Thug - Beats up a Woman (uncredited)
Police Woman 1973 Gang Leader (as Jacky Chan)
Tie wa 1973 Japanese Extra (as Chen Yuen Lung)
Bei di yan zhi 1973 Xiao Liu (as Chen Yuan Lung)
Chinese Hercules 1973 Thug (uncredited)
Bruce Lee and I 1973 Thug (uncredited)
Ding tian li di 1973 Shi Tzer (as Yuen Lung Chen)
Ambush 1973 Extra (uncredited)
Brutal Boxer 1972 Thug - Slides along Floor (uncredited)
Hapkido 1972 Black Bear Student (uncredited)
Fist of Fury 1972 Jing Wu Student (uncredited)
A Touch of Zen 1971 Extra (uncredited)
The Angry River 1971 Cameo (uncredited)
The Blade Spares None 1971 Young Ching Yun (uncredited)
Lady of Steel 1970 Beggar kid (uncredited)
The Story of Ching Hsian-Lien 1963 Tung Ge (Juvenile) (as Yuan-Lou Chen)
The Love Eterne 1963 Extra (uncredited)
Big and Little Wong Tin Bar 1962 Cheung 6 Ba (Juvenile) (as Yuen Lau)
//
// Get a list of every movie Jackie Chan has acted in
// https://www.imdb.com/name/nm0000329/
//
// Example markup:
//
// <div id="filmography">
// <div id="filmo-head-actor">
// ...
// </div>
// <div class="filmo-category-section">
// ...
// <div class="filmo-row even" id="actor-tt0080179">
// <span class="year_column">
// &nbsp;1978
// </span>
// <b>
// <a href="/title/tt0080179/?ref_=nm_flmg_act_104">
// Drunken Master
// </a>
// </b>
// <br>
// Wong Fei-Hung (as Jacky Chan)
// </div>
// </div>
// ...
// </div>
//
const SELECTORS = {
PARENT: "#filmo-head-actor",
ITEM : ".filmo-row",
YEAR : ".year_column",
TITLE : "b",
}
const CURRENT_YEAR = (new Date(Date.now())).getFullYear()
let movies = Array.prototype.map.call(
document.querySelector(SELECTORS.PARENT)
.nextElementSibling
.querySelectorAll(SELECTORS.ITEM),
(row) => {
return {
title : row.querySelector(SELECTORS.TITLE).innerText.trim(),
year : row.querySelector(SELECTORS.YEAR).innerText.trim(),
character: row.childNodes[row.childNodes.length - 1].textContent.trim(),
}
}
)
.filter(movie => movie.year && movie.year <= CURRENT_YEAR)
console.log(movies)
let csv = movies.map(movie => Object.values(movie).map(JSON.stringify).join(","))
csv.unshift(Object.keys(movies[0]).join(","))
csv = csv.join("\n")
console.log(csv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment