Web scraping a partir do Uniprot usando R

Olá pessoal.
Estou tentando obter uma string desse website http://www.uniprot.org/uniprot/Q4DQV8. A string começa com “Tc00”.

Tentei usar o seguinte código:

library(tidyverse)
library(rvest)

page <- read_html(url)
    
page  |>  html_nodes("body")  |> html_text() |> str_extract(page_text, "Tc00\\S*")

Porém, a função read_html() me retorna o seguinte:

“[1] “UniProt website fallback messageIf you are not seeing anything on this page, it might be for multiple reasons:You might have JavaScript disabled: make sure to enable JavaScript on your browser, or use a browser that supports JavaScript.You might have an outdated browser: make sure that your browser is up to date as older versions might not work with the website.There might have been a network issue: ensure that your connectivity is stable and try to reload the page to see if it solves the issue. Reload this page// workaround for Safari 10.1 supporting module but ignoring nomodule\n // From https://gist.github.com/samthor/64b114e4a4f539915a95b91ffd340acc\n (function () {\n var d = document;\n var c = d.createElement(‘script’);\n if (!(‘noModule’ in c) && ‘onbeforeload’ in c) {\n var s = false;\n d.addEventListener(\n ‘beforeload’,\n function (e) {\n if (e.target === c) {\n s = true;\n } else if (!e.target.hasAttribute(‘nomodule’) || !s) {\n return;\n }\n e.preventDefault();\n },\n true\n );\n\n c.type = ‘module’;\n c.src = ‘.’;\n d.head.appendChild(c);\n c.remove();\n }\n })();””

O javascript do meu navegador está habilitado.

Alguém poderia me ajudar?

Olá Nathan, tudo bom?

Deixa eu perguntar, seu objetivo é treinar web scaping ou extrair essas informações do Uniprot?
Faz tempo que não uso, mas lembro que tinha uma boa API deles que a gente conseguia quase todas as informações diretamente.

Posso buscar aqui como conseguir essa informação via API.

Abraço

Marcel