|
|
#1 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2011
Device: Kindle
|
Request: Wired Magazine UK
Kind regards StalkS |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,994
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
I believe that's Kiklop74's recipe. He will probably spot your post here. Yes, it's broken, and it's because the site has changed.
__________________
The speed limit on our spacetime highway of life is c - lightspeed. Surprisingly, the posted minimum is also c. We can go no faster, nor any slower! The conversion factor from the time dimension to space is ct. When stationary in space, we must move into the future at c to have our clock tick off t. When moving in space, the spacetime vector c tilts from pure motion in time. The faster we move in the space dimension, the slower we move in the time dimension. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 773
Karma: 194642
Join Date: Dec 2007
Location: Argentina
Device: iPod touch, Kindle 2, Motorola Xoom
|
I'll look into that this week.
|
|
|
|
|
|
#4 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2011
Device: Kindle
|
Great News! Thank you!
|
|
|
|
|
|
#5 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jun 2011
Device: Kindle;Sony PRS505
|
Updated Recipe
Hi
Since this does not seem to have been updated yet, here is my version of the recipe: Code:
__license__ = 'GPL v3'
__copyright__ = '2010-2011, Darko Miletic <darko.miletic at gmail.com>, Justin Saunders <justin at jumaka dot co dot uk>'
'''
www.wired.co.uk
'''
from calibre import strftime
from calibre.web.feeds.news import BasicNewsRecipe
class Wired_UK(BasicNewsRecipe):
title = 'Wired Magazine - UK edition'
__author__ = 'Darko Miletic, Justin Saunders'
description = 'Gaming news'
publisher = 'Conde Nast Digital'
category = 'news, games, IT, gadgets'
oldest_article = 32
max_articles_per_feed = 100
no_stylesheets = True
encoding = 'utf-8'
use_embedded_content = False
masthead_url = ''
language = 'en_GB'
extra_css = ' body{font-family: Tahoma,Geneva,Verdana,sans-serif; font-size: 1.0em } img{margin-bottom: 0.8em } .img-descr{font-family: Tahoma,Arial,Helvetica,sans-serif; font-size: 0.6875em; display: block} '
index = 'http://www.wired.co.uk/magazine'
conversion_options = {
'comment' : description
, 'tags' : category
, 'publisher' : publisher
, 'language' : language
}
keep_only_tags = [
dict(name='div', attrs={'class':'layoutColumn1'}),
dict(name='div', attrs={'class':'articleMeta clearfix'}),
dict(name='div', attrs={'class':'imageWrapper'}),
dict(name='div', attrs={'class':'mainCopy'})]
remove_tags = [
dict(name=['object','embed','iframe','link']),
dict(name='div', attrs={'class':'galleryThumbs'}),
dict(name='div', attrs={'class':'paging1 articleCopyPaging'}),
dict(name='h2', attrs={'class':'clearfix contentGroup cgMedium'}),
dict(attrs={'class':['commentAddBox linkit','opts','comment','stories','articleSidebar1']})
]
remove_tags_after = dict(name='div', attrs={'class':'clearfix'})
remove_attributes = ['height','width']
def parse_index(self):
totalfeeds = []
soup = self.index_to_soup(self.index)
for maincontent in soup.findAll('div',attrs={'class':['storyList narrowStoryList','storyList wideStoryList','storyList otherStoryList']}):
mfeed = []
secttitle = 'Unknown'
secthead = maincontent.find('h3')
if secthead:
secta = secthead.find('a',attrs={'class':'ir'})
if secta:
secttitle = self.tag_to_string(secta)
secta = secthead.find('span',attrs={'class':'ir'})
if secta:
secttitle = self.tag_to_string(secta)
for sec in maincontent.findAll('li'):
for itt in sec.findAll('a',href=True):
url = 'http://www.wired.co.uk' + itt['href']
title = self.tag_to_string(itt)
description = ''
date = strftime(self.timefmt)
mfeed.append({
'title' :title
,'date' :date
,'url' :url
,'description':description
})
totalfeeds.append((secttitle, mfeed))
return totalfeeds
def get_cover_url(self):
cover_url = None
soup = self.index_to_soup(self.index)
cover_item = soup.find('meta', attrs={'property':'og:image'})
if cover_item:
cover_url = cover_item['content']
return cover_url
def print_version(self, url):
return url + '?page=all'
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wired Magazine Featured Articles | zach382 | Recipes | 0 | 12-27-2010 09:18 PM |
| Reason Magazine request | c0llin | Recipes | 0 | 11-29-2010 03:00 PM |
| iPad Wired Magazine - what a bummer! | The Old Man | Apple Devices | 48 | 06-30-2010 02:12 PM |
| The Future of Reading-June 2009 Wired Magazine by Clive Thompson | tracyeo | News | 0 | 06-09-2009 09:55 PM |
| WIRED magazine e-Ink Cover Hack? | andyafro | News | 2 | 08-01-2008 01:11 PM |