|
@@ -86,7 +86,7 @@ class ArticleManager(object):
|
|
|
search articles in wx
|
|
|
:return:
|
|
|
"""
|
|
|
- url = "http://8.217.190.241:8888/crawler/wei_xin/keyword"
|
|
|
+ url = "http://47.98.154.124:8888/crawler/wei_xin/keyword"
|
|
|
payload = json.dumps({
|
|
|
"keyword": title,
|
|
|
"cursor": "1"
|
|
@@ -106,7 +106,7 @@ class ArticleManager(object):
|
|
|
:param content_link:
|
|
|
:return:
|
|
|
"""
|
|
|
- url = "http://8.217.190.241:8888/crawler/wei_xin/detail"
|
|
|
+ url = "http://47.98.154.124:8888/crawler/wei_xin/detail"
|
|
|
payload = json.dumps({
|
|
|
"content_link": content_link,
|
|
|
"is_count": False,
|
|
@@ -123,8 +123,9 @@ class ArticleManager(object):
|
|
|
def update_msg_list(cls, ghId, index):
|
|
|
"""
|
|
|
:return:
|
|
|
+ "http://47.98.154.124:8888/crawler/wei_xin/detail"
|
|
|
"""
|
|
|
- url = 'http://8.217.190.241:8888/crawler/wei_xin/blogger'
|
|
|
+ url = 'http://47.98.154.124:8888/crawler/wei_xin/blogger'
|
|
|
payload = {
|
|
|
'account_id': ghId,
|
|
|
'cursor': index,
|
|
@@ -145,7 +146,7 @@ class ArticleManager(object):
|
|
|
"""
|
|
|
async with aiohttp.ClientSession() as session:
|
|
|
async with session.post(
|
|
|
- url='http://8.217.190.241:8888/crawler/wei_xin/account_info',
|
|
|
+ url='http://47.98.154.124:8888/crawler/wei_xin/account_info',
|
|
|
headers={'Content-Type': 'application/json'},
|
|
|
json={"content_link": content_url}
|
|
|
) as response:
|