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

Add Carrefour - Commercial Terms #229

Open
OTA-Bot opened this issue Dec 7, 2021 · 0 comments
Open

Add Carrefour - Commercial Terms #229

OTA-Bot opened this issue Dec 7, 2021 · 0 comments

Comments

@OTA-Bot
Copy link
Collaborator

OTA-Bot commented Dec 7, 2021

New service addition requested through the contribution tool

You can see the work done by the awesome contributor here:
https://opentermsarchive.org/fr/contribute/service?documentType=Commercial%20Terms&name=Carrefour&removedCss[]=%23data-nav&removedCss[]=%23data-top-bar&removedCss[]=%23sub-header&removedCss[]=.menu-block__list&removedCss[]=.button-label&removedCss[]=.button&removedCss[]=.colophon__container%20%3E%20.colophon__wrapper&removedCss[]=.colophon__banner%3Anth-child%281%29%20%3E%20.colophon__banner-wrapper&removedCss[]=.colophon__banner%3Anth-child%282%29%20%3E%20.colophon__banner-wrapper&removedCss[]=.colophon__container-links%20%3E%20.colophon__wrapper&removedCss[]=.colophon__secondary-links&removedCss[]=.colophon-payment-methods&selectedCss[]=.editorial-content%3Anth-child%2811%29&selectedCss[]=.editorial-wrapper%20%3E%20div%3Anth-child%282%29&step=2&url=https%3A%2F%2Fwww.carrefour.fr%2Fconditions-generales-ventes&expertMode=true

Or you can see the JSON generated here:

{
  "name": "Carrefour",
  "documents": {
    "Commercial Terms": {
      "fetch": "https://www.carrefour.fr/conditions-generales-ventes",
      "select": [
        ".editorial-content:nth-child(11)",
        ".editorial-wrapper > div:nth-child(2)"
      ],
      "remove": [
        "#data-nav",
        "#data-top-bar",
        "#sub-header",
        ".menu-block__list",
        ".button-label",
        ".button",
        ".colophon__container > .colophon__wrapper",
        ".colophon__banner:nth-child(1) > .colophon__banner-wrapper",
        ".colophon__banner:nth-child(2) > .colophon__banner-wrapper",
        ".colophon__container-links > .colophon__wrapper",
        ".colophon__secondary-links",
        ".colophon-payment-methods"
      ]
    }
  }
}

You will need to create the following file in the root of the project: services/Carrefour.json

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

3 participants