Created
January 29, 2019 18:05
-
-
Save jabez007/f24ed6604904a4826717a1879da3bd8d to your computer and use it in GitHub Desktop.
Scrape the current Daily Programmer challenges
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch("https://www.reddit.com/r/dailyprogrammer/").then((resp) => resp.text()).then((text) => { | |
let parser = new DOMParser(); | |
let doc = parser.parseFromString(text, "text/html"); | |
doc.querySelectorAll("a.SQnoC3ObvgnGjWt90zD9Z").forEach((a) => console.log(a.href));}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment