Можем ли мы объединить '[class="a"]' и '[id="c d"]' в одной команде?
from bs4 import BeautifulSoup
# Example HTML
html = """
- Content 1
[*]Content 3
"""
# Create BeautifulSoup object
soup = BeautifulSoup(html, 'html.parser')
soup.select('[id="c d"]')
soup.select('[class="a"]')
Подробнее здесь: https://stackoverflow.com/questions/796 ... me-command
Мобильная версия