Beispiel #1
0
    def generateRepostMap(self, url, level=2, max=100):
        self.weibocrawler = weiboCrawler.weiboCrawler()
        self.visualizationutil = visualizationUtil.visualizationUtil()

        repost = self.weibocrawler.getRepost(url, level, max)

        # print repost
        urlparts = url.split('/')
        postname = 'post_%s_%s' % (urlparts[3], urlparts[4])

        # Write dot file
        out = './out/' + postname
        self.visualizationutil.generateDotFile(repost, out)
Beispiel #2
0
    def generateRepostMap(self, url, level=2, max=100):
        self.weibocrawler = weiboCrawler.weiboCrawler()
        self.visualizationutil = visualizationUtil.visualizationUtil()

        repost = self.weibocrawler.getRepost(url, level, max)

        # print repost
        urlparts = url.split("/")
        postname = "post_%s_%s" % (urlparts[3], urlparts[4])

        # Write dot file
        out = "./out/" + postname
        self.visualizationutil.generateDotFile(repost, out)
Beispiel #3
0
	def __init__(self):
		self.weiboutil = weiboUtil.weiboUtil()
		self.visualizationutil = visualizationUtil.visualizationUtil()
		self.mongoDButil = mongoDBUtil.mongoDBUtil()