MCPcopy Create free account
hub / github.com/geekcomputers/Python / get

Method get

insta_monitering/insta_api.py:29–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27
28 @coroutine
29 def get(self):
30 try:
31 q = self.get_argument("q")
32 user = self.get_argument("userId")
33 type = self.get_argument("type")
34 productId = self.get_argument("productId")
35 except:
36 self.send_error(400)
37 if " " in q:
38 q = q.replace(" ", "")
39 self.background_task(user=user, tags=q, type=type, productId=productId)
40 temp = {}
41 temp["query"] = q
42 temp["userId"] = user
43 temp["status"] = True
44 temp["productId"] = productId
45 print(
46 "{0}, {1}, {2}, {3}".format(
47 temp["userId"], temp["productId"], temp["query"], temp["status"]
48 )
49 )
50 self.write(ujson.dumps(temp))
51
52
53class StopHandlerinsta(tornado.web.RequestHandler):

Callers

nothing calls this directly

Calls 1

background_taskMethod · 0.95

Tested by

no test coverage detected