Scraping multipule items on a page

Hello,
I haven't used Apify SDK for many months and I see some things changed, please help me by providing a snippet based on this:
https://sdk.apify.com/docs/examples/basic-crawler
that will visit a url, create array from all elements with class .branch, and extract the text under class .branch-name, and will create a list of json files for each branch with his branch name.
In the past I made things like that and much more complicated but I totally forgot. And I cant find a few articles with examples such as the one that scraped Alexa sites with their ranking.
Thank you
This is the most bare-bones example of the Apify SDK, which demonstrates some of its building blocks such as the BasicCrawler. You probably don't need to go this deep though, and it would be better to start with one of the full-featured crawlers
Was this page helpful?