Category : python

https://i.stack.imgur.com/zFqm1.png Need to extract all product urls,tried this. Couldn’t get most of them url = "https://alcohaul.sg/" var x = document.querySelectorAll("a"); var myarray = [] for (var i=0; i<x.length; i++){ var nametext = x[i].textContent; var cleantext = nametext.replace(/s+/g, ‘ ‘).trim(); var cleanlink = x[i].href; myarray.push([cleantext,cleanlink]); }; function make_table() { var table = ‘<table><thead><th>Name</th><th>Links</th></thead><tbody>’; for (var i=0; ..

Read more