0

How can I extract the "Data Engineer" text from

<a class="jobTitle-link" href="/job/Data-Engineer/861664201/">Data Engineer</a>

Sample Code should be fine.

Andrej Kesely
  • 168,389
  • 15
  • 48
  • 91
Behruam A
  • 9
  • 1
  • Please accept an answer if your problem has been fixed, or otherwise offer clarification if you were looking for a different one. – human bean Nov 18 '22 at 00:43

1 Answers1

0

const text = document.querySelector(".jobTitle-link").innerText;
console.log(text);
<a class="jobTitle-link" href="/job/Data-Engineer/861664201/">Data Engineer</a>
human bean
  • 847
  • 3
  • 15