MCPcopy Create free account
hub / github.com/dataabc/weiboSpider / __init__

Method __init__

weibo_spider/parser/comment_parser.py:16–19  ·  view source on GitHub ↗
(self, cookie, weibo_id)

Source from the content-addressed store, hash-verified

14
15class CommentParser(Parser):
16 def __init__(self, cookie, weibo_id):
17 self.cookie = cookie
18 self.url = 'https://weibo.cn/comment/' + weibo_id
19 self.selector = handle_html(self.cookie, self.url)
20
21 def get_long_weibo(self):
22 """获取长原创微博"""

Callers

nothing calls this directly

Calls 1

handle_htmlFunction · 0.85

Tested by

no test coverage detected