Background: – Shopee uses javascript to get data as json from server – Shopee server only provides data for request with “User-agent”, “X-Requested-With”, “Referer”. Requests without these will get empty result. Required tool: – Using devtool to find url of json – python to run js request. Ref: https://stackoverflow.com/questions/59557071/how-can-i-crawl-the-product-items-from-shopee-website
Category Archives: Python
1. Xem version python: + Mac: python -V Note: python 2 và python 3 có thể cùng cài trên máy => check python 3: python3 –version + Windows: open python app => phiên bản sẽ xuất hiện. 2. Open and quit python: + Open python 2: pytho + Open python 3: python3 + Quit: Quit() […]