def post(self): try: pd = json.loads(request.get_data()) for url in pd: i = Item() i.from_url(url) except: return "",500