по этому прошу помощи. Как мне решить эту ошибку?
TypeError: 'NoneType' object is not subscriptable
import requests
from bs4 import BeautifulSoup
URL = "https://habr.com/ru/search/?target_type=posts&q=python&order_by=date"
page = requests.get(URL)
soup = BeautifulSoup(page.content, "html.parser")
post = soup.find("li", "", id=True)
post_id = post["id"]
post = soup.find("li", class_="tm-article-snippet tm-article-snippet", id=True)
post_id = post["id"]
#print(post_id)
title = post.find("a", class_="post__title_link").text.strip()
description = post.find("div", class_="post__text post__text-html post__text_v1").text.strip()
url = post.find("a", class_="post__title_link", href=True)["href"].strip()