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

Optimize the YAML script #2

Open
sestok opened this issue Feb 3, 2023 · 0 comments
Open

Optimize the YAML script #2

sestok opened this issue Feb 3, 2023 · 0 comments

Comments

@sestok
Copy link

sestok commented Feb 3, 2023

I'd re-write the YAML script in the below format to be more readable

restaurants:
  - name: Cap
    url: https://www.pivnice-ucapa.cz/denni-menu.php
    selector: "body > main > div.container.main-obsah > div > div > div > div > div > div.listek > div"
    tags: 
      - HW

  - name: Suzies
    url: http://www.suzies.cz/poledni-menu.html
    selector: "#food-grid > div:nth-child(2) > div > div[class^=uk]"
    tags: 
      - HW

  - name: Veroni
    url: https://www.menicka.cz/4921-veroni-coffee--chocolate.html
    selector: "#menicka > div > div.text > div.profile > div.obsah > div.menicka"
    tags: 
      - HW

  - name: Bauman
    url: https://ubaumannu.cz/menu
    selector: "#block-yui_3_17_2_3_1488384401748_8513 > div > p"
    tags: 
      - jsmadis

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