fork(1) download
  1. from bs4 import BeautifulSoup
  2.  
  3. r = '<h2 class="heading_10">[Exclusive Sale] Xenoblade2 - Pyra 1/7 Complete Figure(Pre-order)<br/><span class="sub_title"></span><span style="font-size:50%;padding:2px;">【限定販売】ゼノブレイド2 ホムラ 1/7 完成品フィギュア</span></h2>'
  4. soup = BeautifulSoup(r[:r.rindex('<br/>')], 'lxml')
  5. eng = soup.find('h2').text
  6. soup = BeautifulSoup(r, 'lxml')
  7. chinese = soup.find('span', class_='').text
  8.  
  9.  
Success #stdin #stdout 0.17s 27376KB
stdin
Standard input is empty
stdout
Standard output is empty