Skip to content

Commit

Permalink
feat: hacky attempt at an MP filter
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed May 22, 2024
1 parent 2df6a74 commit 8b3b6a6
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion output/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download
<th>Username</th>
<th>Tweet content</th>
<th>Total ratings</th>
<th>Tweet author</th>
</tr>
</thead>
<tbody>
Expand All @@ -26,6 +27,7 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download
</div>

<script>
const mps = ['SarahAthertonMP', 'AndrewmitchMP', 'Bob4Beckenham', 'OfKawczynski', 'RichardFoordLD', 'JillMortimer4HP', 'UK_FoRBEnvoy', 'SarahGreenLD', 'kimleadbeater', 'MPGlosOffice', 'allandoransMP', 'AdamHollowayMP', 'Matt_VickersMP', 'Gibbo4Darlo', 'twocitiesnickie', 'SarBritcliffeMP', 'Dines4Dales', 'RobinMillarMP', 'david4wantage', 'SallyAnn1066', 'KateOsborneMP', 'GlindonMary', 'dean4watford', 'Bren4Bassetlaw', 'ApsanaBegumMP', 'JamesSunderl', 'marcolonghi4dn', 'OliverDowden', 'RishiSunak', '_RobbieMoore', 'Christian4BuryS', 'AnthonyBrowneMP', 'CharlesWalkerMP', 'DrNeilHudson', 'MPIainDS', 'PaulaBarkerMP', 'RuthNewportWest', 'maggie_erewash', 'MickWhitleyMP', 'SirRogerGale', 'ShaileshVara', 'KimJohnsonMP', 'BBradley_Mans', 'Jane_Stevenson_', 'TeamRanil', 'AndrewBowie_MP', 'YasinForBedford', 'Jacob_Rees_Mogg', 'BrineMinister', 'NavPMishra', 'Jamie4North', 'lia_nici', 'robertlargan', 'AnthonyMangnal1', 'redditchrachel', 'DanCardenMP', 'FabianLeedsNE', 'JuliaLopezMP', 'EddieHughes4WN', 'LizTwistMP', 'david_duguid', 'AJRichardsonMP', 'paulscullymp', 'TaiwoOwatemi', 'drcarolinej', 'EstherMcVey1', 'michaelgove', 'theresa_may', 'ScottBentonMP', '_AndersonStuart', 'IoWBobSeely', 'KwasiKwarteng', 'NickFletcherMP', 'GillFurnissMP', 'GarethBaconMP', 'garystreeterSWD', 'DominicRaab', 'LukeHall', 'sarahjolney1', 'ASollowayUK', 'HelenMorganMP', 'JamieWallisMP', 'JimShannonMP', 'KemiBadenoch', 'lucyfrazermp', 'baynes_simon', 'antony_hig', 'nadams', 'StevenBonnarSNP', 'ALewerMBE', 'edwardtimpson', 'DerekThomasUK', 'Laura__Farris', 'MelJStride', 'BorisJohnson', 'Chris_EvansMP', 'NickTorfaen', 'zarahsultana', 'JohnMcNallySNP', 'NickGibbUK', 'eleanor4epping', 'khalid4PB', 'PGibsonSNP', 'PeterGrantMP', 'Simon4NDorset', 'AlanBrownSNP', 'AlbertoCostaMP', 'MargaretFerrier', 'GradySNP', 'justinmadders', 'GillianKeegan', 'MickeyBradySF', 'HannahB4LiviMP', 'JohnCryerMP', 'Imran_HussainMP', 'eastantrimmp', 'BrendanOHaraMP', 'Dr_PhilippaW', 'CMonaghanSNP', 'HuwMerriman', 'Douglas4Moray', 'BethWinterMP', 'Rehman_Chishti', 'VictoriaPrentis', 'Jochurchill_MP', 'ToniaAntoniazzi', 'KieranMullanUK', 'DrLisaCameronMP', 'DavidDavisMP', 'lrobertsonTewks', 'DrBenSpencer', 'JonathanLord', 'wendychambLD', 'jcartlidgemp', 'kirstenoswald', 'KirstySNP', 'alancampbellmp', 'joannaccherry', 'PutneyFleur', 'RosieDuffield1', 'DarrenG_Henry', 'Keir_Starmer', 'carolynharris24', 'JacobYoungMP', 'DrRosena', 'MarieRimmer', 'LSRPlaid', 'AnumSNP', 'MrJohnNicolson', 'RobertJenrick', 'K_Fletcher_MP', 'MarkTamiMP', 'neill_bob', 'DerekTwiggMP', 'RicHolden', 'ChrisLawSNP', 'RobertSyms', 'TomTugendhat', 'RThomsonMP', 'AlanMakMP', 'WalkerWorcester', 'MPGeorgeEustice', 'TanDhesi', 'marykfoy', 'AlokSharma_RDG', 'SuellaBraverman', 'SimonClarkeMP', 'MarcusFysh', 'Dunne4Ludlow', 'DesmondSwayne', 'William_Wragg', 'Nus_Ghani', 'lynbrownmp', 'Marcus4Nuneaton', 'Q66Suzi', 'MGreenwoodWW', 'Simonhartmp', 'JamesDalyMP', 'Anna_Firth', 'VotePursglove', 'AlexChalkChelt', 'PaulGirvanMP', 'Rees4Neath', 'andreajenkyns', 'craig4monty', 'LabourSJ', 'nicolafrichards', 'JoStevensLabour', 'Ianblackford_MP', 'CGreenUK', 'MpHendrick', 'julianknight15', 'Lee4NED', 'louie_french', 'EdwardJDavey', 'DSimmonds_RNP', 'mark4dewsbury', 'NatalieElphicke', 'JanetDaby', 'JackLopresti', 'MaryRobinson01', 'FrancieMolloy', 'nigelmills', '_OliviaBlake', 'rach_hopkins', 'SarahChampionMP', 'AndyMcDonaldMP', 'Peter_Dowd', 'HenrySmithUK', 'PeterBoneUK', 'MartinVickers', 'MariaMillerUK', 'KevanJonesMP', 'morton_wendy', 'SCrabbPembs', 'AJonesMP', 'BobBlackman', 'MPritchardUK', 'JulieElliottMP', 'AWMurrison', 'EmmaLewellBuck', 'JulianSmithUK', 'SKinnock', 'RupaHuq', 'IanMearnsMP', 'SDoughtyMP', 'PreetKGillMP', 'LindsayHoyle_MP', 'Caroline_Ansell', 'DavidRutley', 'CWhittaker_MP', 'StephenFarryMP', 'Siobhain_Mc', 'PaulHowellMP', 'NadiaWhittomeMP', 'IanByrneMP', 'richardbaconmp', 'HuddlestonNigel', 'Y_FovargueMP', 'LeoDochertyUK', 'DavidTCDavies', 'RichardBurgon', 'joymorrissey', 'BlaenauGwentMP', 'LiamFox', 'AnnelieseDodds', 'RebeccaHarrisMP', 'JonCruddas_1', 'BillWigginMP', 'GeraldJonesLAB', 'StephenFlynnSNP', 'karinsmyth', 'Tobias_Ellwood', 'NiaGriffithMP', 'drlukeevans', 'EdwardLeighMP', 'Shaun4WBW', 'PennyMordaunt', 'NadineDorries', 'BenMLake', 'DanielZeichner', 'JSHeappey', 'CSkidmoreUK', 'Metcalfe_SBET', 'KarlTurnerMP', 'bhatti_saqib', 'Mark_J_Harper', 'DeidreBrock', 'DamianGreen', 'KateOsamor', 'WayneDavid_MP', 'hilarybennmp', 'ShabanaMahmood', 'OrfhlaithBegley', 'JudithCummins', 'AmyCallaghanSNP', 'DaveDooganSNP', 'munirawilson', 'SMcPartland', 'CliveEfford', 'alanwhiteheadmp', 'AngelaCrawley30', 'ConorBurnsUK', 'NorwichChloe', 'RLong_Bailey', 'cj_dinenage', 'HollyLynch5', 'amandamilling', 'PaulBlomfieldMP', 'JohnHealey_MP', 'GarySambrook89', 'pow_rebecca', 'JeromeMayhew', 'tomhunt1988', 'GavinWilliamson', 'thisischerilyn', 'NazShahBfd', 'CatherineWest1', 'GarethDavies_MP', 'abenaopp', 'ChrisHazzardSF', 'charlotte2153', 'ClaireCoutinho', 'KeeleyMP', 'YvetteCooperMP', 'Valerie_VazMP', 'BimAfolami', 'ABridgen', 'TahirAliMP', 'IanLaveryMP', 'RobBAylesbury', 'Meg_HillierMP', 'danny__kruger', 'TommySheppard', 'ElliotColburn', 'J_Donaldson_MP', 'PeteWishart', 'AndrewHWestern', 'jamesowild', 'SteveBarclay', 'SelaineSaxby', 'ThangamMP', 'helenhayes_', 'KarenPBuckMP', 'peter_aldous', 'johnfinucane', 'drewhendrySNP', 'DougChapmanSNP', 'SarahOwen_', 'JustinTomlinson', 'BarrySheerman', 'GRobinsonDUP', 'coyleneil', 'rushanaraali', 'ChrisStephens', 'MattWestern_', 'AaronBell4NUL', 'KennyMacAskill', 'DanJarvisMP', 'BellRibeiroAddy', 'mimsdavies', 'Offord4Hendon', 'Debbie_abrahams', 'GregClarkMP', 'bernardjenkin', 'AngelaRayner', 'John4Carlisle', 'Alex_Stafford', 'GarethThomasMP', 'StewartHosieSNP', 'KellyTolhurst', 'JakeBerry', 'MattRodda', 'simonjamesjupp', 'Stuart_McDonald', 'JNHanvey', 'carolinenokes', 'mariacaulfield', 'OliverHealdUK', 'Afzal4Gorton', 'SharonHodgsonMP', 'Michael4MDNP', 'chrisloder', 'gregsmith_uk', 'meaglemp', 'jon_trickett', 'Kate_HollernMP', 'MarshadeCordova', 'davidmorrisml', 'cmackinlay', 'jamesmurray_ldn', 'vickyfoxcroft', 'pauljholmes', 'CPJElmore', 'SamanthaDixonMP', 'ChrisPincher', 'EmilyThornberry', 'JohnPenroseNews', 'JamesMorris', 'Mark_Spencer', 'JimfromOldham', 'HackneyAbbott', 'GeraintDaviesMP', 'ACunninghamMP', 'LouHaigh', 'BWallaceMP', 'GuyOpperman', 'JonAshworth', 'GavNewlandsSNP', 'craig4nwarks', 'griffitha', 'JonesyFay', 'PauletteHamilto', 'ronniecowan', 'Andrew4Pendle', 'Tom_Randall', 'JDjanogly', 'Helen_Whately', 'John2Win', 'AlecShelbrooke', 'Siobhan_Baillie', 'JWhittingdale', 'gildernewm', 'PhilipDaviesUK', 'GregHands', 'angelaeagle', 'JamesDuddridge', 'nadhimzahawi', 'Bill_Esterson', 'MhairiBlack', 'Ben_Everitt', 'jeremycorbyn', 'michelledonelan', 'alisonthewliss', 'markjenkinsonmp', 'DawnButlerBrent', 'TulipSiddiq', 'libdemdaisy', 'scottmann4NC', 'Jeremy_Hunt', 'margarethodge', 'PBottomleyMP', 'RuthCadbury', 'timloughton', 'BarryGardiner', 'leicesterliz', 'Geoffrey_Cox', 'stephenctimms', 'BambosMP', 'GeorgeFreemanMP', 'BillCashMP', 'iainastewart', 'JohnnyMercerUK', 'ChrisClarksonMP', 'lisanandy', 'johnredwood', 'MartynDaySNP', 'amcarmichaelMP', 'AndrewSelous', 'CPhilpOfficial', 'cajardineMP', 'JGray', 'ChiOnwurah', 'AnneMarieMorris', 'chhcalling', 'PaulMaskeyMP', 'CarolineLucas', 'RachaelMaskell', 'timfarron', 'marionfellows', 'Jesse_Norman', 'IanMurrayMP', 'CatMcKinnell', 'johnmcdonnellMP', 'AlunCairns', 'CrispinBlunt', 'Royston_Smith', 'YasminQureshiMP', 'MikeKaneMP', 'DianaJohnsonMP', 'paulbristow79', 'jogideon', 'FeryalClark', 'hammersmithandy', 'trussliz', 'NeilDotObrien', 'tracey_crouch', 'Ed_Miliband', 'tobyperkinsmp', 'pritipatel', 'theodoraclarke', 'grahamemorris', 'GwynneMP', 'MarkPawsey', 'elliereeves', 'Steph_Peacock', 'ClaudiaWebbe', 'theresecoffey', 'kevinhollinrake', 'S_Hammond', 'AngusMacNeilSNP', 'kevin_j_foster', 'jessicamordenmp', 'aliciakearns', 'AshleyDalton_MP', 'lloyd_rm', 'JackieDP', 'andrealeadsom', 'GilesWatling', 'labourlewis', 'JohnGlenUK', 'ConorMcGinn', 'JaneMHunt', 'RachelReevesMP', 'AlexDaviesJones', 'LucyMPowell', 'SeemaMalhotra1', 'FelicityBuchan', 'CatSmithMP', 'simonlightwood', 'OwenThompson', 'gaganmohindra', 'DehennaDavison', 'liambyrnemp', 'karlmccartney', 'MrAndy_Carter', 'SamTarry', 'patmcfaddenmp', 'duncancbaker', 'MartinJDocherty', 'HelenGrantMP', 'BenPBradshaw', 'StephenMorganMP', 'SteveReedMP', 'tony4rochdale', 'VirendraSharma', 'LaylaMoran', 'AnneMcLaughlin', 'AlynSmith', 'carlalockhart', 'DavidLinden', 'alexburghart', 'JamesDavies', 'AdamAfriyie', 'peterkyle', 'KevinBrennanMP', 'HeatherWheeler', 'spellar', 'Alison_McGovern', 'steve_mccabe', 'HywelPlaidCymru', 'stevedouble', 'mtpennycook', 'JulieMarsonMP', 'RhonddaBryant', 'columeastwood', 'FloEshalomi', 'ClaireHanna', 'willquince', 'StuartAndrew', 'darrenpjones', 'wesstreeting', 'MikeAmesburyMP', 'robertcourts', 'annietrev', 'Mark4WyreForest', 'LilianGreenwood', 'AlexNorrisNN', 'AndrewRosindell', 'sajidjavid', 'jessphillips', 'HarrietHarman', 'Wera_Hobhouse', 'Michael_Ellis1', 'MattHancock', 'halfon4harlowMP', 'JasonMcCartney', 'StewartMcDonald', 'DavidMundellDCT', 'kitmalthouse', 'bphillipsonMP', 'hbaldwin', 'Pauline_Latham', 'Mike_Fabricant', 'JeffSmithetc', 'jreynoldsMP', 'sheryllmurray', 'KerryMP', 'DavidLammy', 'mattwarman', 'scullyp', 'DavidEvennettMP', 'DavidJonesMP', 'BrandonLewis', 'simonfell', 'lucyallan', 'alexsobel', 'stellacreasy', 'GregKnight', 'SteveBakerHW', 'PaulMaynardUK', 'DamianCollins', 'mikejwood', 'vickyford', 'AnnaMcMorrin', 'DamianHinds', 'grahamstuart', 'RobertBuckland', 'grantshapps', 'JamesCleverly', 'BrineMP', 'LukePollard', 'nigelmp', 'JulianSturdy'];
/*
This list comes from:
https://developer.x.com/en/docs/twitter-api/enterprise/powertrack-api/guides/operators
Expand Down Expand Up @@ -215,13 +217,28 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download
return data;
}
},
{
data: 'user',
visible: false,
defaultContent: '',
searchPanes: {
options: [
{
label: 'UK MPs',
value: function (rowData, rowIdx) {
return mps.includes(rowData['user']);
}
}
]
}
},
],
drawCallback: function (settings) {
twttr.widgets.load();
},
searchPanes: {
orderable: false,
columns: [5, 6, 4],
columns: [5, 6, 10, 4],
preSelect: [
{
column: 5,
Expand Down

0 comments on commit 8b3b6a6

Please sign in to comment.