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

Adding new websites #159

Closed
Crazyhead90 opened this issue Feb 2, 2021 · 0 comments
Closed

Adding new websites #159

Crazyhead90 opened this issue Feb 2, 2021 · 0 comments

Comments

@Crazyhead90
Copy link

Crazyhead90 commented Feb 2, 2021

I'm trying to add a dutch website called "bol.com" and to get the scraper to work here.

What i've done so far is:

  1. Added a bol.py in the scraper folder
  2. Added the scraper to init in the scraper folder
  3. Added a config file with a bol.com article
  4. Added test files in the test folder (not sure if this was needed, but i tried it anyway as i couldn't get it working).

See: https://github.com/Crazyhead90/inventory-hunter/commit/1177991ecd723fe71ba1bff8b0498fd8ea0cefa1

However, whenever i run the script it gives me this warning:

I2021-02-02 10:57:32,376 [root] starting v1.4.7 with args: /src/run.py --alerter discord --webhook https://discord.com/api/webhooks/--removed-- I2021-02-02 10:57:32,540 [root] discord alerter initialized with kwargs: webhook_url=https://discord.com/api/webhooks/--removed-- W2021-02-02 10:57:32,644 [root] warning: using generic scraper for url: https://www.bol.com/nl/p/samsung-galaxy-watch-active-smartwatch-39-mm-groen/9200000106195085/ I2021-02-02 10:57:32,644 [bl_1] scraper initialized for https://www.bol.com/nl/p/samsung-galaxy-watch-active-smartwatch-39-mm-groen/9200000106195085/ I2021-02-02 10:57:34,222 [bl_1] not in stock

It seems to try and scrape it with a "generic scraper" for that url.

How do i get it to use the bol.py scraper that i made in the scraper folder?

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

1 participant