Jump to content

Recommended Posts

Em là newbie muốn nghịch vọc api shopee nhưng em get request vào api/v4/item/get?itemid=12729263306&shop_id=379233423 thì 403 ạ


huhu hay tại em add thiếu header ạ :( mong có thể được các anh/chị xem giúp em 🥹

import requests

url = 'https://shopee.vn/api/v4/item/get?itemid=12729263306&shop_id=379233423'
my_headers = {
  'authority': 'shopee.vn',
  'method': 'GET',
  'scheme': 'https',
  'accept': '*/*',
  'accept-encoding': 'gzip, deflate, br',
  'accept-language': 'zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7,ja;q=0.6',
  'if-none-match': "55b03-9ff4fb127aff56426f5ec9022baec594",
  'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36',
  'x-api-source': 'pc',
  'x-requested-with': 'XMLHttpRequest'
r = requests.get(url=url, headers=my_headers)


Edited by hkhansh27
lack of infor

Chia sẻ bài đăng này

Link tới bài viết
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Trả lời chủ đề này...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...