mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	...
This commit is contained in:
		
							parent
							
								
									419b7e42b3
								
							
						
					
					
						commit
						ae2b434b35
					
				@ -5,6 +5,7 @@ __docformat__ = 'restructuredtext en'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
from calibre.web.feeds.news import BasicNewsRecipe
 | 
			
		||||
from calibre import strftime
 | 
			
		||||
 | 
			
		||||
# http://online.wsj.com/page/us_in_todays_paper.html
 | 
			
		||||
 | 
			
		||||
@ -67,6 +68,13 @@ class WallStreetJournal(BasicNewsRecipe):
 | 
			
		||||
        def parse_index(self):
 | 
			
		||||
            soup = self.wsj_get_index()
 | 
			
		||||
 | 
			
		||||
            year = strftime('%Y')
 | 
			
		||||
            for x in soup.findAll('td', attrs={'class':'b14'}):
 | 
			
		||||
                txt = self.tag_to_string(x).strip()
 | 
			
		||||
                if year in txt:
 | 
			
		||||
                    self.timefmt = ' [%s]'%txt
 | 
			
		||||
                    break
 | 
			
		||||
 | 
			
		||||
            left_column = soup.find(
 | 
			
		||||
                    text=lambda t: 'begin ITP Left Column' in str(t))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user