![python](https://habrastorage.org/r/w120/webt/67/53/2d/67532dddd34eb598991451.png)
Python
1
Вклад в тег
import requests
from bs4 import BeautifulSoup
URL = 'https://blog.torproject.org/'
page = requests.get(URL)
soup = BeautifulSoup(page.content, 'html.parser')
results = soup.find_all('h2', class_='title')
for result in results:
print("%s" % result.text)