Permalink
Browse files

Use an API key for the embed.ly API.

Open sorcerers: you will need an API key for media scraping to work
now. Please visit http://embed.ly to sign up. It's free for <10K
URLs a month.
  • Loading branch information...
1 parent 84b9fb1 commit 4b9fee79269500a0ab7c026eb7bfb9356838e193 @screeley screeley committed with spladug Aug 2, 2011
Showing with 4 additions and 2 deletions.
  1. +2 −0 r2/example.ini
  2. +2 −2 r2/r2/lib/scraper.py
View
@@ -313,6 +313,8 @@ s3_thumb_bucket = test.your.domain.here
default_thumb = /static/noimage.png
self_thumb = /static/self_default2.png
media_domain = localhost
+# Embedly API Key
+embedly_api_key =
# -- limits --
# rate limiter duration (minutes)
View
@@ -1318,8 +1318,8 @@ class EmbedlyOEmbed(OEmbed):
, re.I
)
- api_endpoint = 'http://api.embed.ly/v1/api/oembed'
- api_params = {'format':'json', 'maxwidth':600 }
+ api_endpoint = 'http://api.embed.ly/1/oembed'
+ api_params = {'format':'json', 'maxwidth':600, 'key' : g.embedly_api_key }
class GenericScraper(MediaScraper):
"""a special scrapper not associated with any domains, used to

0 comments on commit 4b9fee7

Please sign in to comment.