Modify the link in the Link Selector

Hi, I'm trying get info from this page: https://tanks.gg/tank/foch-155
That page is accessing by the link selector from a start page.

The info I need is: Type (there are at most 3 types and in some tanks are only 2 types), Damage and Cost of Ammo. By default, only shows standard ammo, for see data of others types of ammo you must need select it from a JS menu, but i can accessing by this link:
https://tanks.gg/tank/foch-155?l=000001 for 2nd type.
https://tanks.gg/tank/foch-155?l=000002 for 3rd type.

Then, when i get the link, i need to go to 3 pages, for get all data, not only one.
The first solution is in metadata put all tanks (around 750) x 3 links, so 2100 links in metadata at least. And for that i need scrape the links in one project, copy-paste-modify x2, and then, with it, work in the 2nd project.
There is any alternative solutions for doing that in only one project?

You can actually do this with Element click selector:

{"_id":"tanks-gg","startUrl":["https://tanks.gg/tank/foch-155"],"selectors":[{"id":"ammo-click","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"body","multiple":true,"delay":2000,"clickElementSelector":".module.shell .module-list > a","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"name","type":"SelectorText","parentSelectors":["ammo-click"],"selector":".module.shell .module-list .selected > b","multiple":false,"regex":"","delay":0},{"id":"damage","type":"SelectorText","parentSelectors":["ammo-click"],"selector":".sections > section:nth-of-type(1) div:nth-of-type(2) span","multiple":false,"regex":"","delay":0},{"id":"cost","type":"SelectorText","parentSelectors":["ammo-click"],"selector":"var.silver","multiple":false,"regex":"","delay":0}]}

This needed a look at the source HTML and writing some CSS selectors by hand. It may seem strange that elements which aren't visible can be "clicked" (the items in the dropdown menu), but in this case they are still there in the code even when the dropdown is hidden.

1 Like

Great, works well, but one of the records (the default showed) is getting twice. I solved with "discardInitialElements":"discard".