Skip to content

Instantly share code, notes, and snippets.

@lmmx
Created May 6, 2014 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lmmx/b9c840e0e26ec4e4dcec to your computer and use it in GitHub Desktop.
Save lmmx/b9c840e0e26ec4e4dcec to your computer and use it in GitHub Desktop.
Simple site map XML parsing in Javascript
xmlin = prompt(); // view-source:biochemistri.es/sitemap1.xml
parser = new DOMParser();
xmlDoc=parser.parseFromString(xmlin,"text/xml");
xmlDoc.querySelectorAll('loc')[0].remove();
posts = xmlDoc.querySelectorAll('loc');
postlist = [];
for (i=0;i<posts.length;i++) {postlist.push(posts[i].innerHTML)};
copy(postlist.join('\t')); // Chronological list of all posts as .tsv
http://biochemistri.es/post/51716288385/japanese-researchers-have-recreated-the http://biochemistri.es/post/52432144540/a-new-method-of-single-molecule-detection-of http://biochemistri.es/post/52434947420/every-neuron-has-several-thousand-mitochondria http://biochemistri.es/post/52459480521/we-must-be-clear-that-when-it-comes-to-atoms http://biochemistri.es/post/52669116387/proteins-are-able-to-fold-quickly-because-they http://biochemistri.es/post/52733725054/investigators-of-biologys-quantum-realm-may-no http://biochemistri.es/post/53263193269/from-the-lab-of-karl-deisseroth-on-the-radar-of http://biochemistri.es/post/53288616872/amino-acyl-trna-synthases-aarss-have-numerous http://biochemistri.es/post/53292303284/a-crystal-of-genx-a-lysyl-trna-synthetase http://biochemistri.es/post/53305914145/polycomb-group-pcg-proteins-are-key http://biochemistri.es/post/53349228770/the-layer-of-carbohydrate-covering-cell-surfaces http://biochemistri.es/post/53353698751/micrographs-of-paramecium-tetraurelia http://biochemistri.es/post/53358801540/a-collaboration-of-dutch-chemists-and http://biochemistri.es/post/53380656224 http://biochemistri.es/post/53393605530/able-to-live-for-decades-up-to-32-years-compared http://biochemistri.es/post/53519408973/antidepressant-use-has-risen-continually-across http://biochemistri.es/post/53544924616/alya-red-is-the-barcelona-supercomputing-centers http://biochemistri.es/post/53601223901/this-weeks-genetics-features-a-new-laboratory http://biochemistri.es/post/53616984502/in-the-first-paper-of-its-kind-publicly-available http://biochemistri.es/post/53626922505/the-issue-of-mental-health-in-those-with-immune http://biochemistri.es/post/53664925546/allosteric-coupling-between-sites-in-intrinsically http://biochemistri.es/post/53918353022/ras-selective-lethal-compounds-rsls-are http://biochemistri.es/post/54011023229/titled-after-an-italian-proverb-acqua-che-corre http://biochemistri.es/post/54016003299/the-phase-problem-is-connected-to-the-fact-that http://biochemistri.es/post/54132203528/horizon-2020-the-european-framework-for-research http://biochemistri.es/post/54332354962/in-key-scientific-areas-of-great-societal http://biochemistri.es/post/54371390139/mixing-of-mitochondrial-dnas-heteroplasmy-is http://biochemistri.es/post/54423280408/content-and-comment-from-ash-jogelakars-piece http://biochemistri.es/post/54621594843/chemistry-represented-an-indefinite-cloud-of http://biochemistri.es/post/54822597074/microscopic-fragments-of-plastic-in-the-oceans http://biochemistri.es/post/55255370473/the-essence-of-senescence-biomarkers-in http://biochemistri.es/post/55286188695/a-century-ago-bridges-proposed-that-male-genes-on http://biochemistri.es/post/55332643835/hexacoordinated-hydrogen-has-been-identified-as http://biochemistri.es/post/55365521218/vesicular-endocytosis-dwarfs-outgoing-cellular http://biochemistri.es/post/55377134078/it-has-already-been-determined-that-silencing-near http://biochemistri.es/post/55416032514/guo-et-al-hereby-find-truncating-mutations-not http://biochemistri.es/post/55692809838/a-fascinating-paper-features-this-week-in-soft http://biochemistri.es/post/55770154858/cardiovascular-researchers-in-spain-have-recently http://biochemistri.es/post/55783438857/in-2002-bonnie-bassler-received-a-macarthur http://biochemistri.es/post/55792301793/a-new-noninvasive-prenatal-test-is-poised-to http://biochemistri.es/post/55815489498/as-a-follow-up-to-my-previous-post-on-the http://biochemistri.es/post/55867656221/a-paper-in-cell-this-week-uses-automated-ultrathin http://biochemistri.es/post/55896356187/commenting-on-the-work-of-terasaki-et-al http://biochemistri.es/post/55920670785/vital-forces-direct-phenomena-they-do-not-produce http://biochemistri.es/post/55954234665/morphology-is-not-only-a-study-of-material-things http://biochemistri.es/post/55969815427/reverse-micelles-form-as-water-in-oil-systems http://biochemistri.es/post/56000788098/i-started-pushing-people-and-i-push-with-my http://biochemistri.es/post/56050327847/acids-are-central-to-immunity-in-eukarya-and-as http://biochemistri.es/post/56055979352/the-high-occurrence-of-overextension-injuries-at http://biochemistri.es/post/56228400831/selaginella-lepidophylla-is-one-of-only-a-few http://biochemistri.es/post/56243988087/theres-more-to-the-lhc-than-a-desire-for http://biochemistri.es/post/56412618315/the-journal-of-human-genetics-this-week-focusses http://biochemistri.es/post/56509990798/the-scientifically-naive-vatican-finds-the-concept http://biochemistri.es/post/56608386384/stephen-arnolds-lab-at-nyu-poly-in-the-wake-of http://biochemistri.es/post/57009718839/fluorescent-analogues-are-useful-in-monitoring-the http://biochemistri.es/post/57275193130/but-do-new-biological-advances-demand-a http://biochemistri.es/post/57782645213/i-made-a-thing http://biochemistri.es/post/57793016111/in-2011-low-resolution-cryo-em-studies-of-dna http://biochemistri.es/post/58090202532/the-best-of-times http://biochemistri.es/post/58727145542/the-science-of-the-concrete http://biochemistri.es/post/58901037837/carnivorous-plants-are-it-seems-underinvestigated http://biochemistri.es/post/58918221264/theres-a-basic-assumption-that-the-things-you-see http://biochemistri.es/post/59043604364/birth-and-breastfeeding-as-delivery-mechanisms-for http://biochemistri.es/post/59049240420/golgi-antiapoptotic-proteins-or-gaaps-not-to-be http://biochemistri.es/post/59111069227/i-kept-getting-distracted-by-all-these-little http://biochemistri.es/post/59137557118/by-analysing-dnase-i-hypersensitive-sites-dhss http://biochemistri.es/post/59184082106/the-diffusion-of-neurotransmitters-nts-across http://biochemistri.es/post/59281368123/minor-introns-are-embedded-molecular-switches http://biochemistri.es/post/59472216360/if-your-result-is-not-published-you-havent-done http://biochemistri.es/post/59703752730/expert-views-on-the-alleged-chemical-weapons-attack-in http://biochemistri.es/post/59710527987/with-world-war-i-the-great-chemical-revolution http://biochemistri.es/post/59757280231/bonnie-bassler-of-princeton-university-in-new http://biochemistri.es/post/59783550156/when-responding-to-gains-in-reputation-for-the-self http://biochemistri.es/post/59853634760/a-comprehensive-map-of-scars-left-behind-on-the http://biochemistri.es/post/59950709651/on-the-cover-of-the-latest-molecular-cell-the http://biochemistri.es/post/60343899530/there-are-generalized-laws-governing-structure http://biochemistri.es/post/60448440600/peerj-blog-interview-with-an-author-melissa-haendel http://biochemistri.es/post/60479739984/a-kymograph-displaying-the-passage-of-time-on-the http://biochemistri.es/post/60571243567/how-primary-micrornas-pri-mirnas-with-complex http://biochemistri.es/post/60583901564/the-protein-that-maintains-the-clarity-of-the-lens http://biochemistri.es/post/60687215551/researchers-have-used-mass-spectrometry-to http://biochemistri.es/post/60925457611/a-plot-showing-the-linear-relationship-between http://biochemistri.es/post/61048261944/power-and-limits-of-the-graphic-the-three http://biochemistri.es/post/61098983765/compared-to-sexually-reproducing-species-in-which http://biochemistri.es/post/61111039357/to-have-ones-hands-among-the-unspeakable http://biochemistri.es/post/61288531345/the-distinction-between-natural-and-other-forms-of http://biochemistri.es/post/61391478016/waters-the-ideal-lubricant-for-hydrogen-bonded http://biochemistri.es/post/62750426483/les-grecs-avaient-compris-la-mysterieuse-puissance http://biochemistri.es/post/63726099513/computers-were-made-for-biology-biology-would http://biochemistri.es/post/63919574248/translational-dynamics-of-water-at-the-phospholipid http://biochemistri.es/post/64219798119/the-regulatory-tag-ubiquitin-which-signals http://biochemistri.es/post/64222145895/the-cell-uses-a-conserved-pathway-for-both-the http://biochemistri.es/post/64304957081/o-ribose-origami-nmr-and-neutron-scattering-work http://biochemistri.es/post/64313793990/the-academic-custom-to-write-research-articles-for http://biochemistri.es/post/64326564065/the-largest-journal-publishers-earn-higher-profit http://biochemistri.es/post/64568076646/a-310-helix-is-a-type-of-protein-secondary http://biochemistri.es/post/64778065570/as-the-replication-fork-proceeds-along-a-dna http://biochemistri.es/post/64810330207/the-work-awarded-this-years-nobel-prize-in http://biochemistri.es/post/64854567179/support-for-the-existence-of-z-dna-in-e-coli-has http://biochemistri.es/post/64906326507/disordered-landscapes-and-functional-frustration http://biochemistri.es/post/65324103635/evolutionary-conservation-of-motif-constituents http://biochemistri.es/post/65327513201/new-faculty-positions-versus-new-phds-since http://biochemistri.es/post/65445999394/at-its-head-the-red-helices-this-protein-can http://biochemistri.es/post/65516014820/chemists-at-the-university-of-oxford-uk-have http://biochemistri.es/post/65520427836/the-idea-of-genetics-as-essentially-a http://biochemistri.es/post/65570725162/it-may-be-necessary-not-to-think-of-the-pathways http://biochemistri.es/post/66027402347/she-wraps-man-in-darkness-and-makes-him-for-ever http://biochemistri.es/post/66038070916/in-an-intriguing-paper-earlier-this-year-a-host http://biochemistri.es/post/66047855892/if-you-imagine-3-genes-red-green-and-blue-here http://biochemistri.es/post/66127941172/after-taking-some-introductory-electronics-this http://biochemistri.es/post/67455194519/in-possibly-the-most-common-bacterial-expression http://biochemistri.es/post/67654030742/labels-were-once-applied-as-a-way-of-identifying http://biochemistri.es/post/67742171961/its-unclear-whether-most-intergenic-transcription http://biochemistri.es/post/67855816910/change-in-heat-capacity-for-enzyme-catalysis-determines http://biochemistri.es/post/67950644546/the-focus-of-this-weeks-nature-reviews-molecular http://biochemistri.es/post/67960550350/seeing-things-in-a-different-light-professor http://biochemistri.es/post/68111725581/what-is-a-gene-post-encode http://biochemistri.es/post/68220095122/predicting-accurate-fragments-from-sequence-has http://biochemistri.es/post/68302533845/3-ways-to-blow-the-whistle-as-yong-and-colleagues http://biochemistri.es/post/68451590569/in-a-new-in-silico-study-providing-an-intriguing http://biochemistri.es/post/68766072037/lncrnas-can-function-via-chromatin-remodeling-a http://biochemistri.es/post/68768865516/i-was-just-wondering-what-a-dna-rna-triplex-looked http://biochemistri.es/post/68774279525/since-plenty-of-the-followers-of-this-blog-seem-to http://biochemistri.es/post/68877741014/the-c-complex-spliceosome-the-spliceosome-is-a http://biochemistri.es/post/68901721209/protein-structure-undergoes-local-breathing http://biochemistri.es/post/68965148283/why-do-some-genes-seem-to-respond-in-a-digital http://biochemistri.es/post/69068318610/breaking-barriers-and-building-bridges-in-cancer http://biochemistri.es/post/69099340206/the-ries-group-at-embl-heidelberg-germany-are http://biochemistri.es/post/69111610275/comparison-of-the-arrangement-of-ca-capsid http://biochemistri.es/post/69121175839/membrane-enzymes-stop-and-frisk-proteins http://biochemistri.es/post/69273458238/we-are-developing-super-resolution-optical http://biochemistri.es/post/69364207878/reincarnation-of-the-microtrabecular-lattice-an http://biochemistri.es/post/69580411732/on-going-deeper-than-the-article http://biochemistri.es/post/69714268364/friction-controls-viral-dna-ejection http://biochemistri.es/post/69729477653/dont-know-who-else-around-here-uses-twitter-but http://biochemistri.es/post/70194749470/genome-wide-probing-of-rna-structure-reveals-active http://biochemistri.es/post/71435711247/just-found-this-handsome-little-protein-crystal http://biochemistri.es/post/72365868728/there-is-no-didactic-message-in-the-work-the http://biochemistri.es/post/72385013984/of-shrinkage-patterns-a-shrinking-cylinder-as http://biochemistri.es/post/72549884988/one-of-the-most-interesting-but-poorly http://biochemistri.es/post/72706647954/theres-something-quite-ascetic-about-revision http://biochemistri.es/post/72799562715/the-price-of-textbooks-has-risen-more-than-800 http://biochemistri.es/post/72811500868/kerberusstyx-replied-to-your-photo-theres http://biochemistri.es/post/72974689012/musical-interlude-the-gins-complex-was-named-by http://biochemistri.es/post/73071074532/memorising-the-amino-acids-as-a-dumb-teen http://biochemistri.es/post/73120733938/the-7-crystal-systems-tiny-mineral-operations http://biochemistri.es/post/73328736635/the-biological-sciences-are-dominated-by-the-idea http://biochemistri.es/post/73399070685/cant-say-ive-ever-had-the-same-problem-i-was http://biochemistri.es/post/73639240258/using-quantum-topology-we-investigated-a-shuttle http://biochemistri.es/post/73817390272/the-genetic-analysis-of-the-lambda-bacteriophage http://biochemistri.es/post/73949660513/viruses-can-contain-virulence-determinants-that http://biochemistri.es/post/74055192495/human-immunodeficiency-virus-type-1-hiv-1-and http://biochemistri.es/post/74067531952/i-think-one-of-the-saddest-things-ive-read-about http://biochemistri.es/post/74210970914/a-phylogenetic-tree-from-2007-made-to-infer-the http://biochemistri.es/post/74588983636/is-this-a-human-or-just-a-bot-skimming-publications http://biochemistri.es/post/75264621895/sorry-for-going-quiet-here-just-setting-some http://biochemistri.es/post/75403665545/for-us-today-the-tools-matter-less-than-the http://biochemistri.es/post/75410900384/the-glory-of-applied-mathematics-he-continued-is http://biochemistri.es/post/75512196775/data-in-the-news-plos-introduce-a-new-data-policy-and http://biochemistri.es/post/75525808100/the-figure-above-is-from-a-fantastic-new-paper http://biochemistri.es/post/75781326505/correction-scientists-are-not-reading-fewer-papers http://biochemistri.es/post/75782465013/i-asked-a-really-stupid-question-about-entropy-on http://biochemistri.es/post/77182374548/the-porous-bleeding-edge-of-dna-sequencing http://biochemistri.es/post/77417889716/spectral-hole-burning-excerpt-from http://biochemistri.es/post/77467900351/an-earthquake-is-the-result-of-a-sudden-release-of http://biochemistri.es/post/77473311110/modern-diet-and-metabolic-variance-a-recipe-for http://biochemistri.es/post/77599424831/the-mechanism-of-negative-dna-supercoiling-a http://biochemistri.es/post/77645400118/postmodern-reassessment-of-some-central http://biochemistri.es/post/77688623902/the-words-or-the-language-as-they-are-written-or http://biochemistri.es/post/77710121590/the-scale-free-research-citation-network http://biochemistri.es/post/77746659618/hospital-records-of-all-nhs-patients-sold-to-insurers http://biochemistri.es/post/77797128133/instead-of-applying-observation-to-the-things-we http://biochemistri.es/post/77965394635/quorum-the-latin-genitive-of-qui-of-whom-is http://biochemistri.es/post/78000515081/somebody-like-turing-whos-done-something-that http://biochemistri.es/post/78432919222/the-thing-is-to-have-no-discipline-at-all-biology http://biochemistri.es/post/78877228963/who-needs-tv-anyway-these-seminars-from-the http://biochemistri.es/post/79454008910/i-once-had-a-particularly-thorny-scientific http://biochemistri.es/post/80208422824/the-thousands-of-mutations-that-are-present-in-any http://biochemistri.es/post/80687930754/cropscience http://biochemistri.es/post/81871589953/strategic-reading-and-scientific-discourse http://biochemistri.es/post/82098747487/after-installing-a-linux-mint-operating-system http://biochemistri.es/post/82477477567/journal-abbreviation-generator http://biochemistri.es/post/82964325105/big-data-big-business-and-bioscience http://biochemistri.es/post/83075210059/taurine-and-also-cysteate-are-described-as http://biochemistri.es/post/83116541993/as-if-water-didnt-have-enough-unusual-aspects-of http://biochemistri.es/post/83247376184/hiv-antiretrovirals-as-drugs-of-abuse-from-around http://biochemistri.es/post/83543527963/alzheimers-disease-is-a-growing-health-problem-in http://biochemistri.es/post/83616627508/a-working-group-from-universities-across-europe-is http://biochemistri.es/post/83708593779/zhuangzi-and-huizi-were-strolling-on-a-bridge-over http://biochemistri.es/post/83760238677/p53-is-one-of-the-most-widely-known-tumour http://biochemistri.es/post/83829934899/above-non-enzymatic-sugar-phosphate http://biochemistri.es/post/84004393391/somewhat-unexpectedly-this-study-also-revealed http://biochemistri.es/post/84151472401/e-cigarettes-whats-the-harm http://biochemistri.es/post/84222076376/it-is-difficult-to-obtain-conclusive-proof-of http://biochemistri.es/post/84458011266/overlay-journals-and-supplement-review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment