示例#1
0
def themeforest_html_site_templates_top_seller(request, pages):
    for page in range(1, int(pages) + 1):
        url = 'https://themeforest.net/category/site-templates?sort=sales&page={}'.format(
            str(page))
        data_dict = scrape_data(url)
        res = ProductDataIntoModel(data_dict)
    return HttpResponse('Ok.')
示例#2
0
def codecanyon_javascript_top_seller(request, pages):
    for page in range(1, int(pages) + 1):
        url = 'https://codecanyon.net/category/javascript?sort=sales&page={}'.format(
            str(page))
        data_dict = scrape_data(url)
        res = ProductDataIntoModel(data_dict)
    return HttpResponse('Ok.')
示例#3
0
def themeforest_wordress_top_seller(request, pages):
    for page in range(1, int(pages) + 1):
        url = 'https://themeforest.net/category/wordpress?sort=sales&page={}'.format(
            page)
        data_dict = scrape_data(url)
        res = ProductDataIntoModel(data_dict)
    return HttpResponse('Ok.')