示例#1
0
	def __get_next_url(self, url,end_id,max_id):
		#how to deal the end of the message
		params = format.urldecode(url)
		params['__rnd'] = str(int(time.time() * 1000))
		page = int(params.get('page', 1))
		pre_page = params.get('pre_page', 1)
		if 'pagebar' not in params:
			params['pagebar'] = '0'
			params['max_id'] = max_id
			count = 15
		elif params['pagebar'] == '0':
			params['pagebar'] = '1'
			params['max_id'] = max_id
			count = 15
		elif params['pagebar'] == '1':
			del params['pagebar']
			del params['max_id']
			pre_page = page
			page += 1
			count = 50
			end_msign=-1

		params['count'] = count
		params['page'] = page
		params['pre_page'] = pre_page

		next_url = '%s&%s'%(HIS_ORIGIN_BLOG_PREFIX, format.urlencode(params))
		return next_url
示例#2
0
	def __get_next_url(self, url,end_id,max_id):
		#how to deal the end of the message
		params = format.urldecode(url)
		params['__rnd'] = str(int(time.time() * 1000))
		page = int(params.get('page', 1))
		pre_page = params.get('pre_page', 1)
		if 'pagebar' not in params:
			params['pagebar'] = '0'
			params['max_id'] = max_id
			count = 15
		elif params['pagebar'] == '0':
			params['pagebar'] = '1'
			params['max_id'] = max_id
			count = 15
		elif params['pagebar'] == '1':
			del params['pagebar']
			del params['max_id']
			pre_page = page
			page += 1
			count = 50
			end_msign=-1

		params['count'] = count
		params['page'] = page
		params['pre_page'] = pre_page

		next_url = '%s&%s'%(HIS_ORIGIN_BLOG_PREFIX, format.urlencode(params))
		return next_url
示例#3
0
	def __init_url(self, uid):
		params = {}
		params['count'] = '50'
		params['_t'] = '0'
		params['uid'] = uid
		params['__rnd'] = str(int(time.time() * 1000))
		params['_k'] = str(int(time.time() * (10**6)))
		init_url = '%s&%s'%(HIS_ORIGIN_BLOG_PREFIX, format.urlencode(params))
		return init_url
示例#4
0
	def __init_url(self, uid):
		params = {}
		params['count'] = '50'
		params['_t'] = '0'
		params['uid'] = uid
		params['__rnd'] = str(int(time.time() * 1000))
		params['_k'] = str(int(time.time() * (10**6)))
		init_url = '%s&%s'%(HIS_ORIGIN_BLOG_PREFIX, format.urlencode(params))
		return init_url