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

1

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).


EDIT

enter image description here

Thank you in advance.

Gennaro Arguzzi

Posted 2019-08-11T17:57:17.580

Reputation: 299

Can I use curl and Linux? ( I'm not a Windows person, and am on my cellphone at the moment but it seems to me you want to get the raw HTML and then munge it to produce a simple output either as a CSV you can load or display in a text editor you can copy and paste ) – davidgo – 2019-08-11T19:44:24.683

Hello @davidgo, unfortunately Linux is unknown to me. – Gennaro Arguzzi – 2019-08-12T06:55:23.943

Answers

0

  • 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.

Setop

Posted 2019-08-11T17:57:17.580

Reputation: 151

Hello @Setop, where is "allow pasting"? I uploaded an image of the javascript scratchpad above. – Gennaro Arguzzi – 2019-08-14T16:52:01.333

@GennaroArguzzi You physically type "allow pasting" into the console and press Enter. Pasting is then unlocked. – Anaksunaman – 2019-08-14T22:18:48.193

@Setop Exception: SyntaxError: expected expression, got '>' (after Pretty Print -> Run). – Anaksunaman – 2019-08-14T22:18:57.703

Hi @Setop, after running the console gives me the following error (it is due to the command "allow pasting" because it occurs also if I do not enter the code you wrote above): Exception: SyntaxError: unexpected token: identifier @Scratchpad/1:10 – Gennaro Arguzzi – 2019-08-15T08:56:44.580

Hi @Anaksunaman, does "allow pasting" work in your javascript scratchpad? – Gennaro Arguzzi – 2019-08-20T10:18:54.563

@GennaroArguzii "Allow pasting" works but unfortunately the listed answer does not. – Anaksunaman – 2019-08-25T04:53:31.743

1I added an instruction to remove "allow pasting" to prevent syntax error – Setop – 2019-08-26T08:18:57.707