skip to Main Content

Json – Shopee API to get products data doesn't seem to work anymore (it worked before)

Here's a simple scrapy spider that anyone can use for testing. from scrapy.utils.response import open_in_browser import scrapy import json class TestSpider(scrapy.Spider): name = "test-spider" allowed_domains = ["shopee.ph"] shopee_cookies = '[{"name": "csrftoken", "value": "RvxBdTixvBfdTR3xfQwbcYippqz8jEbF", "domain": "shopee.ph", "path": "/", "expires": -1, "httpOnly":…

VIEW QUESTION

Html – cannot decompose <tr class="thead">

i have the following table <table class="suppress_all sortable stats_table now_sortable sticky_table eq1 re1 le1" id="divs_standings_W" data-cols-to-freeze=",1"> <caption>&nbsp; Table</caption> <colgroup><col><col><col><col><col><col><col><col></colgroup> <thead> <tr> <th aria-label="Western Conference" data-stat="team_name" scope="col" class=" poptip sort_default_asc left">Western Conference</th> <th aria-label="Wins" data-stat="wins" scope="col" class=" poptip right" data-tip="Wins">W</th> <th…

VIEW QUESTION

Javascript – Django 'none' values from ajax

My views: def deleteDepartement(request): object_id = request.POST.get('Id') name= request.POST.get('name') print(object_id) print(name) try: D=Department.objects.get(id=object_id) except: print("NOT FOUND") return redirect('department') JavaScript code: $.ajax({ type: 'POST', url: "{% url 'deleteDepartement' %}", data: { csrfmiddlewaretoken: '{{ csrf_token }}', Id:objectId, name:'test', }, }); I got…

VIEW QUESTION
Back To Top
Search