python - BeautifulSoup html -- load from memory? -
i'm using beautifulsoup
in python 3.5 parse html. while can load file, need load memory because http request. i've google found nothing loading html beautifulsoup memory. possible?
if using version 4 of beautifulsoup, try passing request data it
from bs4 import beautifulsoup import requests # replace following url response = requests.get("https://www.python.org") soup = beautifulsoup(response.text,"html.parser")
Comments
Post a Comment