Copying specific field of a website in a word file with a single operation

text editingweb

I'd like to copy the field title of each occurences here in a word file with a single operation. Example of titles:

  1. Bilocale piazza del Popolo, Piazza del Popolo, Roma
  2. Trilocale via dei Banchi Vecchi, Via Giulia, Roma
  3. etc.

I tried to use "inspect element" in Firefox, but I can select only one title at a time (you can use any browser you want).


enter image description here

Thank you in advance.

Best Answer

  • open console with "F12"
  • open javascript scratchpad with "Shift+F4"
  • type in "allow pasting" to ... allow pasting
  • remove or comment "allow pasting" as it is not javascript syntax
  • paste the following code :
    var sel = document.querySelectorAll("li.listing-item > div > div > p")
    sel.forEach((e) => console.log(e.innerText))
  • type CTRL+R to execute the code
  • get the result in the console.
Related Question