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)