Spaces:
Running
Running
revert url change
Browse files- tokopedia.py +2 -2
tokopedia.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import requests
|
2 |
|
3 |
def request_product_id(shop_domain, product_key):
|
4 |
-
endpoint = "
|
5 |
payload = {
|
6 |
"operationName": "PDPGetLayoutQuery",
|
7 |
"variables": {
|
@@ -53,7 +53,7 @@ def request_product_id(shop_domain, product_key):
|
|
53 |
|
54 |
|
55 |
def request_product_review(product_id, page=1, limit=20):
|
56 |
-
ENDPOINT = "
|
57 |
payload = {
|
58 |
"operationName": "productReviewList",
|
59 |
"variables": {
|
|
|
1 |
import requests
|
2 |
|
3 |
def request_product_id(shop_domain, product_key):
|
4 |
+
endpoint = "https://gql.tokopedia.com/graphql/PDPGetLayoutQuery"
|
5 |
payload = {
|
6 |
"operationName": "PDPGetLayoutQuery",
|
7 |
"variables": {
|
|
|
53 |
|
54 |
|
55 |
def request_product_review(product_id, page=1, limit=20):
|
56 |
+
ENDPOINT = "https://gql.tokopedia.com/graphql/productReviewList"
|
57 |
payload = {
|
58 |
"operationName": "productReviewList",
|
59 |
"variables": {
|