Last active
March 5, 2022 14:30
-
-
Save AndersMoberg/d597b3e7bb1d5cb82e0d629a7bb5dc27 to your computer and use it in GitHub Desktop.
Humble Bundle Purchases (run in browser dev tools - https://www.humblebundle.com/home/purchases)
This file contains 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
var result = []; | |
// | |
var humbleQuery = document.querySelectorAll("html body div.page-wrap div.base-main-wrapper div.inner-main-wrapper div.js-purchase-holder.js-holder div.results.js-results div.body div.row.js-row"); | |
for (let i = 0; i < humbleQuery.length; i++) { | |
let single = humbleQuery[i]; | |
let productname = humbleQuery[i].children[0].innerText; | |
let ordertime = humbleQuery[i].children[1].innerText; | |
let cost = humbleQuery[i].children[2].innerText; | |
result.push([productname, ordertime, cost]); | |
} | |
console.log(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment