Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def GetID(*args, **kwargs):
    r = requests.get(REST_PREFIX + kwargs["model"] + "/")
    if r.json()["last_id"] == None:
        return 0
    else:
        return r.json()["last_id"]
        


src/d/a/DataNormalizer-0.2/DataNormalizer/core/agents.py   DataNormalizer(Download)
__author__ = 'pav'
from DataNormalizer.core.log import Bot
from DataNormalizer.utils.helpers import DataLoad, PathSanitizer
from DataNormalizer.utils.web import GetID
from datetime import datetime
    def __init__(self, dir):
        self.Logger = Bot(dir)
        self.region = {
            "id": int(GetID(model="region")) + 1,
            "region": dir.split("\\")[-1],
    def UIDSetter(self):
        id = int(GetID(model="image")) + 1
        for i in self.wide_set:
            i[0] = PathSanitizer(i[0])
            i.append(id)