Skip to content

Instantly share code, notes, and snippets.

@taddeimania
Last active August 29, 2015 14:17
Show Gist options
  • Save taddeimania/9859026341e9fb5dfd2c to your computer and use it in GitHub Desktop.
Save taddeimania/9859026341e9fb5dfd2c to your computer and use it in GitHub Desktop.
Not really a scraper, just a complicated replacer
(import requests)
(defn replacer []
(setv content
(. (requests.get "https://asciinema.org/api/asciicasts/17675" ) text))
(setv replaced-content (.replace content "/assets" "https://asciinema.org/assets"))
replaced-content)
(replacer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment