title: returning character(0) when scraping with rvest
body: <p>I'm trying to do some web scraping with rvest. I'm new to R, so I have a bit of a knowledge barrier. I want to scrape the following URL:</p>
  <p><a href="https://www.spa.gov.sa/search.php?lang=ar&amp;search=%D8%AD%D9%83%D9%85" rel="nofollow noreferrer">https://www.spa.gov.sa/search.php?lang=ar&amp;search=%D8%AD%D9%83%D9%85</a></p>
  <p>That directs to a website in Arabic, but I don't think you need to be able to read Arabic to advise me. Basically, this is the first results page for a specific search term on this website (which is not a search engine). What I want to do is use rvest to scrape this page to return a list of the titles of the hyperlinks returned by the search. Using selectorgadget, I identified that the node containing those titles is called &quot;.h2Newstitle&quot;. However, when I try to scrape that node using the code below, all I get in return is &quot;character(0)&quot;:</p>
  <pre><code>library(tidyverse)
  library(rvest)
  read_html(&quot;https://www.spa.gov.sa/search.php?lang=ar&amp;search=%D8%AD%D9%83%D9%85&quot;) %&gt;%
      html_nodes(&quot;.h2NewsTitle&quot;) %&gt;%
      html_text()
  </code></pre>
  <p>I don't think the issue here has to do with the Arabic text itself. I'm pretty sure everything is in UTF-8, and I can scrape other nodes on the same page and return Arabic text without issue. For example, the code below returns the Arabic text &quot;بحث أسبوعي&quot;, which corresponds to the Arabic text in that node on the page itself:</p>
  <pre><code>read_html(&quot;https://www.spa.gov.sa/search.php?lang=ar&amp;search=%D8%AD%D9%83%D9%85&quot;) %&gt;%
      html_nodes(&quot;WeeklySearch&quot;) %&gt;%
      html_text()
  </code></pre>
  <p>So I'm unsure why it is when I try to scrape the &quot;.h2NewsTitle&quot; node, I just get character(0) in return. I wonder if it has to do with some elements being rendered with JavaScript or something. This is a bit outside my expertise, so any advice on how to proceed would be appreciated. I'd like to continue using R, but am open to switching to Python/Beautiful Soup or something if it's better suited for this.</p>