#!/usr/bin/env python
import os
import requests
import re
import time
import sys

cookie_value=""
user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"

headers = {"Cookie": "beget=begetok; %s" % (cookie_value),"User-Agent": "%s" % (user_agent)}

embed2 = requests.get("http://lodejo.ru/futbolgratis-kodi.php?busqueda="+sys.argv[1], headers=headers).content

re5=re.findall('acestream\:\/\/(.*?)\"', embed2.decode('utf-8'))[0]
print (re5)


