Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, the following worked for me, not sure if that is the case:</p> <pre><code>url.tmp &lt;- "http://news.google.ru/news?hl=ru&amp;gl=ru&amp;q=" symbol &lt;- "быть OR жить" number &lt;- 10 url &lt;- paste(url.tmp, symbol, "&amp;output=rss", "&amp;start=", 1, "&amp;num=", number, sep = "") url &lt;- URLencode(url) </code></pre> <p>Basically, I've removed the <code>enc2utf8</code> from your example.</p> <pre><code>&gt; xml &lt;- xmlTreeParse(url, useInternalNodes = T, isURL=T) &gt; xml </code></pre> <p>Output:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;rss version="2.0"&gt; &lt;channel&gt; &lt;generator&gt;NFE/1.0&lt;/generator&gt; &lt;title&gt;быть OR жить – Новости Google&lt;/title&gt; &lt;link&gt;http://news.google.ru/news?gl=ru&amp;amp;pz=1&amp;amp;ned=ru_ru&amp;amp;hl=ru&amp;amp;num=10&amp;amp;q=%D0%B1%D1%8B%D1%82%D1%8C+OR+%D0%B6%D0%B8%D1%82%D1%8C&lt;/link&gt; &lt;language&gt;ru&lt;/language&gt; &lt;webMaster&gt;news-feedback@google.com&lt;/webMaster&gt; &lt;copyright&gt;&amp;amp;copy;2011 Google&lt;/copyright&gt; &lt;pubDate&gt;Wed, 21 Sep 2011 13:49:52 GMT+00:00&lt;/pubDate&gt; &lt;lastBuildDate&gt;Wed, 21 Sep 2011 13:49:52 GMT+00:00&lt;/lastBuildDate&gt; &lt;image&gt; &lt;title&gt;быть OR жить – Новости Google&lt;/title&gt; &lt;url&gt;http://www.gstatic.com/news/img/logo/ru_ru/news.gif&lt;/url&gt; &lt;link&gt;http://news.google.ru/news?gl=ru&amp;amp;pz=1&amp;amp;ned=ru_ru&amp;amp;hl=ru&amp;amp;num=10&amp;amp;q=%D0%B1%D1%8B%D1%82%D1%8C+OR+%D0%B6%D0%B8%D1%82%D1%8C&lt;/link&gt; &lt;/image&gt; &lt;item&gt; &lt;title&gt;Взяточникам будут давать до 50 лет тюрьмы - Дни.Ру&lt;/title&gt; &lt;link&gt;http://news.google.com/news/url?sa=t&amp;amp;fd=R&amp;amp;usg=AFQjCNGE1RZXvfqoSBuDU3EqSPeqJDRqDw&amp;amp;url=http://www.dni.ru/redir/?source%3Ddni_picture_day%26id%3D219166%26dniurl%3Dpolit/2011/9/21/219166.html&lt;/link&gt; &lt;guid isPermaLink="false"&gt;tag:news.google.com,2005:cluster=http://www.dni.ru/redir/?source=dni_picture_day&amp;amp;id=219166&amp;amp;dniurl=polit/2011/9/21/219166.html&lt;/guid&gt; &lt;pubDate&gt;Wed, 21 Sep 2011 12:54:00 GMT+00:00&lt;/pubDate&gt; </code></pre> <p>I'm running R via the StatET plugin for Eclipse.</p> <pre><code>&gt; sessionInfo() R version 2.13.1 (2011-07-08) Platform: x86_64-pc-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=Russian_Russia.1251 LC_CTYPE=Russian_Russia.1251 LC_MONETARY=Russian_Russia.1251 LC_NUMERIC=C LC_TIME=Russian_Russia.1251 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] XML_3.4-2.2 quantmod_0.3-15 TTR_0.20-2 Defaults_1.1-1 xts_0.8-0 zoo_1.7-2 rj_0.5.5-4 loaded via a namespace (and not attached): [1] grid_2.13.1 lattice_0.19-30 tools_2.13.1 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload