Created
August 31, 2017 10:29
-
-
Save aeneasr/420fd63e44f0d78bd27bddfa9d4b4047 to your computer and use it in GitHub Desktop.
Estimating themeforest sales per category
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
var vals = []; | |
[].forEach.call(document.querySelectorAll('.product-list__column-price'), function(e) { vals.push({price: parseInt(e.querySelector('.product-list__price-desktop').textContent.replace('$', '')), sales: parseInt(e.querySelector('.product-list__sales-desktop').textContent.replace(' Sales', ''))}) }) | |
console.log(vals) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment