title: Beautiful Soup - hyphenated keyword, Error :: keyword can't be an expression
body: <p>I'm using Selenium and then Beautiful Soup to try an scrape a webpage, the page uses JavaScript to load certain content. Selenium has given me the plain html, I have checked this, using print and found that it does contain the part that im trying to scrape. But my problem is with Beautiful Soup.  </p>
  
  <p>I want to find the div tags with</p>
  
  <pre><code>class="comment-detail"
  </code></pre>
  
  <p>I've tried using</p>
  
  <pre><code>comments = soup.find_all("div", class_="comment-detail")
  </code></pre>
  
  <p>but this returns empty, maybe because the actual div tags also have in them</p>
  
  <pre><code>data-selenium="reviews-comments"
  </code></pre>
  
  <p>The exact tag in the html is </p>
  
  <pre><code>&lt;div data-selenium="reviews-comments" class="comment-detail"&gt;
  </code></pre>
  
  <p>so I tried the following,</p>
  
  <pre><code>comments = soup.find_all("div", data-selenium="reviews-comments", class_="comment-detail")
  </code></pre>
  
  <p>but this gives the error</p>
  
  <pre><code>SyntaxError: keyword can't be an expression
  </code></pre>
  
  <p>since</p>
  
  <pre><code>data-selenium
  </code></pre>
  
  <p>is like a subtraction operation when it is really just a hyphenated word. Ive tried enclosing it in quotation marks but that does not help. </p>
  
  <p>Ive also tried</p>
  
  <pre><code>dct = {
      'div': '',
      'data-selenium': 'reviews-comments',
      'class': 'comment-detail'
  
  }
  comments = soup.find_all(**dct)
  </code></pre>
  
  <p>but </p>
  
  <pre><code>len(comments)
  </code></pre>
  
  <p>returns zero, i.e. comments is empty.</p>
  
  <p>for the sake of clarity to get my soup i have the code</p>
  
  <pre><code>from selenium import webdriver  
  from selenium.common.exceptions import NoSuchElementException  
  from selenium.webdriver.common.keys import Keys  
  from bs4 import BeautifulSoup
  
  browser = webdriver.Firefox()  
  browser.get('http://www.agoda.com/the-coast-resort-koh-phangan/hotel/koh-phangan-th.html/')  
  html_source = browser.page_source  
  browser.quit()
  
  soup = BeautifulSoup(html_source,'html.parser')
  </code></pre>
  
  <p>Any ideas how to proceed here?</p>