SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. title = soup.findAll('div', {'class':'title_wrapper'})
  2.  
  3. print(title)
  4. [<div class="title_wrapper">
  5.  <h1 class="">A Bittersweet Life <span id="titleYear">(<a href="/year/2005/">2005</a>)</span> </h1>
  6.  <div class="originalTitle">Dalkomhan insaeng<span class="description"> (original title)</span></div>
  7.  <div class="subtext">
  8.                      Not Rated
  9.      <span class="ghost">|</span> <time datetime="PT120M">
  10.                          2h
  11.                      </time>
  12.  <span class="ghost">|</span>
  13.  <a href="/search/title?genres=action&explore=title_type,genres">Action</a>,
  14.  <a href="/search/title?genres=drama&explore=title_type,genres">Drama</a>
  15.  <span class="ghost">|</span>
  16.  <a href="/title/tt0456912/releaseinfo" title="See more release dates">1 April 2005 (South Korea)
  17.  </a> </div>
  18.  </div>]
  19.  
  20.  print(type(title))
  21.  <class 'bs4.element.ResultSet'>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top