def make_url(asin, cid=0, url_type='goods', urltitle='', sessionId=''): url_tuple = tuple() if url_type == 'goods': url, referer = GoodsParser.make_goods_url(asin, urltitle=urltitle, sessionId=sessionId) url_tuple = (url, referer) if url_type == 'reviews': url = ReviewsParser.make_reviews_url(asin, urltitle=urltitle) url_tuple = (url, ) if url_type == 'tosell': url = TosellParser.make_tosell_url(asin) url_tuple = (url, ) if url_type == 'keyword': url = GoodsParser.make_search_url(asin, cid) url_tuple = (url, ) return url_tuple
def make_search_url(self, kw, cid): search_url = GoodsParser.make_search_url(kw, cid) return search_url