Skip to content

Commit

Permalink
Add Guardian
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Davison committed Jun 22, 2013
1 parent 76597eb commit fc3ac62
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
10 changes: 10 additions & 0 deletions js/scrape.coffee
Expand Up @@ -229,6 +229,15 @@ class FoxNews extends Scraper
'Trending in Politics': @$('.trending li a')


class Guardian extends Scraper
constructor: ->
@name = 'Guardian US'
@domain = 'http://www.guardiannews.com'

get_anchors: ->
'Most viewed': @$('#most-viewed a')


class _Gawker extends Scraper
constructor: ->
@name = '_Gawker'
Expand Down Expand Up @@ -513,6 +522,7 @@ SCRAPER_CLASSES = [
DailyMail,
DrudgeReport,
FoxNews,
Guardian,
# _Gawker, # was latest not most popular
HuffingtonPost,
LATimes
Expand Down
23 changes: 21 additions & 2 deletions js/scrape.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc3ac62

Please sign in to comment.