Skip to content

Instantly share code, notes, and snippets.

@juanriaza
Created October 27, 2012 13:40
Show Gist options
  • Save juanriaza/3964643 to your computer and use it in GitHub Desktop.
Save juanriaza/3964643 to your computer and use it in GitHub Desktop.
mitele python
import json
import requests
#req = requests.get('http://www.mitele.es/ipadws/?action=getHome&device=ipa')
#req = requests.get('http://www.mitele.es/ipadws/?action=getContent&contentId=46231&device=ipa')
req = requests.get('http://servicios.mitele.es/tokenizer/tkjs.php?id=/nogeo/seriesonline/laqueseavecina/t2/c19.mp4', headers={'User-agent': 'iPad'})
print json.loads(req.content.replace('videoTokenizer(', '')[:-2])['tokenizedUrl']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment