Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microcenter Scraper #66

Closed
Remanent opened this issue Dec 5, 2020 · 8 comments
Closed

Microcenter Scraper #66

Remanent opened this issue Dec 5, 2020 · 8 comments

Comments

@Remanent
Copy link

Remanent commented Dec 5, 2020

The microcenter scraper doesn't detect items that aren't able to be reserved online, but do in fact have in store inventory.

Example is here

https://www.microcenter.com/product/630284/amd-ryzen-7-5800x-vermeer-38ghz-8-core-am4-boxed-processor?storeid=095

Lists 13 in stock as of 7:30pm EST
scraper shows out of stock.

Log from starting a test scraper using above link

D2020-12-05 00:31:20,918 starting with args: /src/run.py --alerter email --email (removed --relay 127.0.0.1
D2020-12-05 00:31:21,150 using parser: lxml
D2020-12-05 00:31:21,151 registering custom scraper for domain: amazon
D2020-12-05 00:31:21,151 registering custom scraper for domain: bestbuy
D2020-12-05 00:31:21,152 registering custom scraper for domain: bhphotovideo
D2020-12-05 00:31:21,153 registering custom scraper for domain: microcenter
D2020-12-05 00:31:21,154 registering custom scraper for domain: newegg
D2020-12-05 00:31:21,155 registering custom scraper for domain: walmart
I2020-12-05 00:31:21,168 scraper initialized for https://www.microcenter.com/product/630284/amd-ryzen-7-5800x-vermeer-38ghz-8-core-am4-boxed-processor?storeid=095
I2020-12-05 00:31:31,621 amd-ryzen-7-5800x-vermeer-38ghz-8-core-am4-boxed-processor: not in stock

(time stamp is 5 hours ahead of system time, gmt i suppose)

Here's a link to a store with no in store inventory:

https://www.microcenter.com/product/630284/amd-ryzen-7-5800x-vermeer-38ghz-8-core-am4-boxed-processor?storeid=081

@EricJMarti
Copy link
Owner

Ah that's a tough one, but I'm up for the challenge! The Micro Center near me is sold out of the 5800X, so the storeid in the URL is critical here. Let's see if I can implement this before it sells out!

@Remanent
Copy link
Author

Remanent commented Dec 5, 2020

Yeah. hence why i provided the storeid part of the url, it's definitely critical, i checked almost all the stores before i found one with something in stock ;)

@Remanent
Copy link
Author

Remanent commented Dec 5, 2020

I'll also mention any 3k series gpus at microcenter have been listed the same way, no option to buy them online and pickup in store (no online reservation. i imagine any of the new amd 6k gpu's will listed the same way.

@EricJMarti
Copy link
Owner

EricJMarti commented Dec 5, 2020

Fixed: 7d9ce7c

Please pull the latest image using:

$ docker pull ericjmarti/inventory-hunter:latest

@Remanent
Copy link
Author

Remanent commented Dec 5, 2020

Unfortunately, not working as intended :( site shows 2 in stock atm, scraper says not in stock.

D2020-12-05 19:33:07,993 [root] starting v1.0.1 with args: /src/run.py --alerter email --email (removed) --relay 127.0.0.1
D2020-12-05 19:33:08,222 [root] using parser: lxml
D2020-12-05 19:33:08,222 [root] registering custom scraper for domain: amazon
D2020-12-05 19:33:08,223 [root] registering custom scraper for domain: bestbuy
D2020-12-05 19:33:08,223 [root] registering custom scraper for domain: bhphotovideo
D2020-12-05 19:33:08,224 [root] registering custom scraper for domain: microcenter
D2020-12-05 19:33:08,225 [root] registering custom scraper for domain: newegg
D2020-12-05 19:33:08,226 [root] registering custom scraper for domain: walmart
I2020-12-05 19:33:08,239 [mcrcntr_1] scraper initialized for https://www.microcenter.com/product/630284/amd-ryzen-7-5800x-vermeer-38ghz-8-core-am4-boxed-processor?storeid=101...
I2020-12-05 19:33:18,845 [mcrcntr_1] not in stock
I2020-12-05 19:33:29,263 [mcrcntr_1] not in stock

@EricJMarti
Copy link
Owner

Strange, this is what I'm getting:

D2020-12-05 23:37:29,487 [root] starting v1.0.1 with args: /src/run.py --alerter discord --webhook https://discord.com/api/webhooks/...
D2020-12-05 23:37:29,759 [root] using parser: lxml
D2020-12-05 23:37:29,759 [root] registering custom scraper for domain: amazon
D2020-12-05 23:37:29,760 [root] registering custom scraper for domain: bestbuy
D2020-12-05 23:37:29,761 [root] registering custom scraper for domain: bhphotovideo
D2020-12-05 23:37:29,762 [root] registering custom scraper for domain: microcenter
D2020-12-05 23:37:29,763 [root] registering custom scraper for domain: newegg
D2020-12-05 23:37:29,765 [root] registering custom scraper for domain: walmart
I2020-12-05 23:37:29,784 [mcrcntr_1] scraper initialized for https://www.microcenter.com/product/630284/amd-ryzen-7-5800x-vermeer-38ghz-8-core-am4-boxed-processor?storeid=101
I2020-12-05 23:37:31,264 [mcrcntr_1] now in stock at 449.99!

@Remanent
Copy link
Author

Remanent commented Dec 6, 2020 via email

@Remanent
Copy link
Author

Remanent commented Dec 6, 2020

bah, I had an error in my yaml file. somehow the … ended up on the same line as the URL, and thus the file was probably being incorrectly read. once I placed it back as the last line, it worked properly. Thank you for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants