<s> """<STR_LIT>""" <EOL> from extraction . techniques import Technique <EOL> from bs4 import BeautifulSoup <EOL> class LethainComTechnique ( Technique ) : <EOL> """<STR_LIT>""" <EOL> def extract ( self , html ) : <EOL> "<STR_LIT>" <EOL> soup = BeautifulSoup ( html ) <EOL> page_div = soup . find ( '<STR_LIT>' , class_ = '<STR_LIT>' ) <EOL> text_div = soup . find ( '<STR_LIT>' , class_ = '<STR_LIT:text>' ) <EOL> return { '<STR_LIT>' : [ page_div . find ( '<STR_LIT>' ) . string ] , <EOL> '<STR_LIT>' : [ page_div . find ( '<STR_LIT>' , class_ = '<STR_LIT:date>' ) . string ] , <EOL> '<STR_LIT>' : [ "<STR_LIT:U+0020>" . join ( text_div . find ( '<STR_LIT:p>' ) . strings ) ] , <EOL> '<STR_LIT>' : [ x . find ( '<STR_LIT:a>' ) . string for x in page_div . find_all ( '<STR_LIT>' , class_ = '<STR_LIT>' ) ] , <EOL> '<STR_LIT>' : [ x . attrs [ '<STR_LIT:src>' ] for x in text_div . find_all ( '<STR_LIT>' ) ] , <EOL> } </s>
