Skip to content

Instantly share code, notes, and snippets.

import requests
import sys
for q in range(1,3):
for i in range(1,10000):
response = requests.post('http://apply.embed.ly/%s' % q, data={'answer': str(i)})
if response.status_code == 302:
print 'question: %, answer: %s' % (q, i)
sys.exit(0)
# This is an implementation using python-oembed with api.embed.ly
# python-oembed http://code.google.com/p/python-oembed/
import oembed
# Embed.ly Multi Provider API Endpoint
OEMBED_ENDPOINT = 'http://api.embed.ly/oembed/api/v1'
# URL Schemes Supported --- complete list maintained
# http://api.embed.ly/static/data/embedly_regex.json
// Call API to get a video oEmbed JSON response
var url = escape('http://vimeo.com/9503416');
var api_url = 'http://api.embed.ly/1/oembed?url=' + url + '&callback=?';
//jQuery JSON call
$.getJSON( api_url, function(json) {
var html = json.html;
$('#videodiv').html(html);
});
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Recent Tweets</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" href="http://fanpagelist.com/css.css" />
<link rel="stylesheet" type="text/css" href="http://fanpagelist.com/jquery/jquery.css" />
#!/usr/bin/env python
import urllib
import urllib2
try:
import json
except ImportError:
try:
import simplejson as json
except ImportError:
raise ImportError("Need a json decoder")
'http://www.flickr.com/photos/cksample3/4383370998/'
'http://soundcloud.com/decksharks-records/tomaz-del-corazon-charter-service'
'http://soundcloud.com/krizz-luco/klanggefluster-01'
'http://www.youtube.com/watch?v=nlh5pECfpug'
'http://tweetphoto.com/31205172'
'http://yfrog.com/jceclipse8j'
'http://tweetphoto.com/31223684'
'http://www.ustream.tv/channel/dj-wally'
'http://tweetphoto.com/31091156'
'http://yfrog.com/me1066510j'