Combine selectors

Describe the problem.

Hi everyone, I'm using this sitemaps to scrap :

{"_id":"flashscoreextract","startUrl":["https://www.flashscore.fr/football/allemagne/3-liga-2020-2021/resultats/"],"selectors":[{"id":"date","parentSelectors":["_root"],"type":"SelectorText","selector":"div.event__time","multiple":true,"delay":0,"regex":""},{"id":"Home team","parentSelectors":["_root"],"type":"SelectorText","selector":"div.event__participant--home","multiple":true,"delay":0,"regex":""},{"id":"Awayteam","parentSelectors":["_root"],"type":"SelectorText","selector":"div.event__participant--away","multiple":true,"delay":0,"regex":""},{"id":"Home score","parentSelectors":["_root"],"type":"SelectorText","selector":"div.event__score--home","multiple":true,"delay":0,"regex":""},{"id":"away score","parentSelectors":["_root"],"type":"SelectorText","selector":"div.event__score--away","multiple":true,"delay":0,"regex":""},{"id":"HT home goal","parentSelectors":["_root"],"type":"SelectorText","selector":"div.event__part--home","multiple":true,"delay":0,"regex":""},{"id":"HT Away team","parentSelectors":["_root"],"type":"SelectorText","selector":"div.event__part--away","multiple":true,"delay":0,"regex":""}]}

with this Url: FlashScore.fr: Résultats de 3. Liga 2020/2021 - Football/Allemagne

And I would like to have all elements align when I scrap, I mean the first element of div.event__time align with the first element of the selector div.event__participant--home and with the others.

Actually, I have this :

Thank you in advance for your help and I'm easily available to answer you.

Regards
Laplacea95

@laplacea95 Hi, this situation is solved in this video - How to select multiple items

To fix this you should make an 'Element' selector - div.event__match with the 'Multiple' option checked and set it as a 'parent' to all of the remaining selectors(with the 'Multiple' option not checked).

Sitemap example:

{"_id":"flashscoreextract","startUrl":["https://www.flashscore.fr/football/allemagne/3-liga-2020-2021/resultats/"],"selectors":[{"delay":0,"id":"date","multiple":false,"parentSelectors":["element-wrapper"],"regex":"","selector":"div.event__time","type":"SelectorText"},{"delay":0,"id":"Home team","multiple":false,"parentSelectors":["element-wrapper"],"regex":"","selector":"div.event__participant--home","type":"SelectorText"},{"delay":0,"id":"Awayteam","multiple":false,"parentSelectors":["element-wrapper"],"regex":"","selector":"div.event__participant--away","type":"SelectorText"},{"delay":0,"id":"Home score","multiple":false,"parentSelectors":["element-wrapper"],"regex":"","selector":"div.event__score--home","type":"SelectorText"},{"delay":0,"id":"away score","multiple":false,"parentSelectors":["element-wrapper"],"regex":"","selector":"div.event__score--away","type":"SelectorText"},{"delay":0,"id":"HT home goal","multiple":false,"parentSelectors":["element-wrapper"],"regex":"","selector":"div.event__part--home","type":"SelectorText"},{"delay":0,"id":"HT Away team","multiple":false,"parentSelectors":["element-wrapper"],"regex":"","selector":"div.event__part--away","type":"SelectorText"},{"delay":0,"id":"element-wrapper","multiple":true,"parentSelectors":["_root"],"selector":"div.event__match","type":"SelectorElement"}]}

Thank you for your return @ViestursWS !

It seems good but there is one problem. The scrap is not in right order


Is it possible to do that ?

Thank for your return.

@laplacea95 Yes, just sort the exported file by 'web-scraper-order' column.