MCPcopy
hub / github.com/liangliangyy/DjangoBlog / baidu_notify

Method baidu_notify

djangoblog/spider_notify.py:11–17  ·  view source on GitHub ↗
(urls)

Source from the content-addressed store, hash-verified

9class SpiderNotify():
10 @staticmethod
11 def baidu_notify(urls):
12 try:
13 data = '\n'.join(urls)
14 result = requests.post(settings.BAIDU_NOTIFY_URL, data=data)
15 logger.info(result.text)
16 except Exception as e:
17 logger.error(e)
18
19 @staticmethod
20 def notify(url):

Callers 4

test_validate_articleMethod · 0.80
handleMethod · 0.80
notifyMethod · 0.80
model_post_save_callbackFunction · 0.80

Calls 1

postMethod · 0.80

Tested by 1

test_validate_articleMethod · 0.64