0

I want to obtain the values from a query at NCBI database. The page from which I want to extract the table is https://www.ncbi.nlm.nih.gov/search/?term=%22PROTEIN+FATE%22

I've tried to obtain the tables via LibreOffice and Pandas

import pandas as pd
tables = pd.read_html("https://www.ncbi.nlm.nih.gov/search/?term=%22PROTEIN+FATE%22")

On both situations, the resullts are:

enter image description here

enter image description here

However, instead of "searching", I was expecting to obtain the numeric values as shown: enter image description here

Is there any intuitive way of doing this?

Thx!

Bruna Zamith
  • 55
  • 1
  • 7
  • Looks like those values are updated by JavaScript after the page loads. – showdev Aug 17 '18 at 00:40
  • Have you tried to use Beautifull soup ? Here is a related topic : https://stackoverflow.com/questions/23377533/python-beautifulsoup-parsing-table – Charles R Aug 17 '18 at 06:06
  • See https://stackoverflow.com/questions/25062365/python-parsing-html-table-generated-by-javascript – Stef Aug 18 '18 at 16:55

0 Answers0