Entering edit mode
21 months ago
xzhang55
•
0
https://www.ebi.ac.uk/metagenomics/genomes/MGYG000000001#overview
Hi Guys,
I want to get the Genome statistics parts from the webpage and I don't know how to do it by python. I would appreciate it if anyone could help me. I tried by this but the output is nothing.
import requests
from bs4 import BeautifulSoup
html = requests.get("https://www.ebi.ac.uk/metagenomics/genomes/MGYG000000001#overview")
soup = BeautifulSoup(html.text,"lxml")
# print(soup.prettify())
# print(soup.title)
# print(soup.head)
soup1 = soup.select("div.vf-grid.vf-grid__col-2")
print(soup1)
Hi, I'm not very familiar with the API, could you please give me more details? I would like to download the "data" part as a csv file.
https://www.ebi.ac.uk/metagenomics/api/v1/