Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# -*- coding: utf8 -*-
import requests
from bs4 import BeautifulSoup
__author__ = "Engine Bai"
url = ""
req = requests.get(url)
html = BeautifulSoup(req.text, "html.parser")
content_tag = html.find("div", attrs={"class": "postArticle-content",
"data-source": "post_page"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.