I have a feeling the information is somewhere on stack overflow, but I can't find it :-/
I'm looking to get the text from this website: https://www.uniprot.org/uniprot/P28653.fasta but my code returns 'None.' All help is super appreciated!
import requests from bs4 import BeautifulSoup as bs r = requests.get('http://www.uniprot.org/uniprot/P28653_PGS1_MOUSE.fasta') soup = bs(r.content, 'html.parser') lst = soup.find_all('pre') print(lst)
returns
[]
Thanks!!
https://stackoverflow.com/questions/65821009/python-beautiful-soup-html-parser-returns-none January 21, 2021 at 12:01PM
没有评论:
发表评论