How to use variables in data Scraping

check here for dynamic selectors: