Sneaker-Monitors icon indicating copy to clipboard operation
Sneaker-Monitors copied to clipboard

Request for Footlocker MY (Malaysia) or SG (Singapore) Monitor

Open cibai7181 opened this issue 4 years ago • 1 comments

I tried to modify the code from "FootlockerUSMonitor", but I don't think it will works.

Repeated error in log shown urllib3.connectionpool - Starting new HTTPS connection (1): www.footlocker.my:443 urllib3.connectionpool - https://www.footlocker.my:443 "GET /en/men/shoes/ HTTP/1.1" 200 24530 ... repeat

What I changed:

  1. proxyObject = FreeProxy(country_id=['MY'], rand=True)

  2. embed['url'] = f'https://www.footlocker.my{product_item[3]}' # Item link

  3. try: html = s.get('https://www.footlocker.my/en/men/shoes/', headers=headers,

Please kindly update the release, thank you :D

cibai7181 avatar Feb 04 '21 14:02 cibai7181

Hey, I'm pretty positive that you need to change the elements as well, right click on a listing and check if it uses the same elements as the Footlocker US site, if it doesn't work on repeated tries, then the site has a diff structure and you need to replace the elements being scraped accordingly.

adityasanehi avatar May 11 '21 10:05 adityasanehi