id related functions.
get an id based on url and time.
# fbf/utils/id.py # # """ id related functions. """
from fbf.utils.generic import toenc
import uuid
def getrssid(url, time): """ get an id based on url and time. """ key = str(url) + str(time) return str(uuid.uuid3(uuid.NAMESPACE_DNS, toenc(key)))