Help with this sitemap... please

Hello good afternoon
I need your help

I have this sitemap and I needed to get Runner_1 from all meetings and all schedules, but I'm stuck in the code.

Can someone help me please?

Thank you very much

Url: https://greyhoundsform.betfair.com/racingform

Sitemap:
{"_id":"form_v02","startUrl":["https://greyhoundsform.betfair.com/racingform"],"selectors":[{"id":"Sel_ecran","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.pageContent","multiple":true,"delay":0,"clickElementSelector":"select#meetings > option:nth-child(n)","clickType":"clickMore","discardInitialElements":true,"clickElementUniquenessType":"uniqueText"},{"id":"Runner_1","type":"SelectorText","parentSelectors":["Sel_ecran"],"selector":"th.header.dog1 h4","multiple":true,"regex":"","delay":0}]}

Hi there!

Unfortunately at the moment it's not possible to have two simultaneously working Element Click selectors. But there's a workaround -- you can scrape all results for a particular meeting, having scraper automatically go through time.

{"_id":"test2","startUrl":["https://greyhoundsform.betfair.com/racingform"],"selectors":[{"id":"Where?","type":"SelectorText","selector":"select#meetings option:checked","parentSelectors":["Sel_ecran"],"multiple":false,"regex":"","delay":0},{"id":"When?","type":"SelectorText","selector":"select#races option:checked","parentSelectors":["Sel_ecran"],"multiple":false,"regex":"","delay":0},{"id":"Number one","type":"SelectorText","selector":"th.header.dog1 h4","parentSelectors":["Sel_ecran"],"multiple":false,"regex":"","delay":0},{"id":"Sel_ecran","type":"SelectorElementClick","selector":"div.pageContent","parentSelectors":["_root"],"multiple":true,"delay":"","clickElementSelector":"select#meetings option:nth-child(2), select#races option","clickType":"clickMore","discardInitialElements":false,"clickElementUniquenessType":"uniqueText"}]}

All you will have to change for every scrape is a value of a meeting:

select#meetings option:nth-child(#), select#races option

where # is a numeric value for a particular meeting in a list (total of 14 values + 'Select meeting').

Good Morning

Thanks a lot for the help.
Not being the perfect solution, it's still fabulous.

But I have a question.

Instead of choosing the meeting by the number, I can not choose it by the name (without the date?)?
For example:
Perry Barr, 25th August

Choose by

Perry Bar

Many thanks

Hi there!

Unfortunately it's not possible to select innerHTML using CSS selector but by using jQuery selector.

I've made a little cheat sheet for you to look at when figuring particular meeting:
image

Ok iconoclast

I get it.

Thanks a million

(y)

1 Like