Skip to content

Instantly share code, notes, and snippets.

@DanyF-github
Created November 4, 2021 11:01
Show Gist options
  • Save DanyF-github/c5eccae09b370a7655ad6aee448549cf to your computer and use it in GitHub Desktop.
Save DanyF-github/c5eccae09b370a7655ad6aee448549cf to your computer and use it in GitHub Desktop.
import requests
from bs4 import BeautifulSoup
page = requests.get("https://example.com")
soup = BeautifulSoup(page.content, "html.parser")
print(soup.find('p'))
>> <p>This domain is for use in illustrative examples in documents...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment