In lead generation, for businesses targeting Shopify stores, extracting the country code from a list of Shopify URLs can be a game-changer.
Hopefully, the country code information is quickly available in the source code of the Shopify stores.
In this article, you will learn:
- To find the country code manually for a Shopify store.
- Extract the country codes for a list of Shopify stores in bulk.
How to find the country code for a Shopify Store manually
How to extract country codes for a list of Shopify Stores - In Bulk
Now, to extract country codes in bulk, you need to automate this process.
To do so, you can use Datablist Bulk Scraper. Datablist is a powerful Leads Relationship Management tool.
First, import your list of Shopify stores in Datablist CSV Editor.
Then, click on the "Enrich" button in the header.
Select the Bulk Scraper enrichment. The Bulk Scraper will open each store using the Shopify URL and extract the country code from the HTML source code.
In the scraper configuration, scroll to the "Regex #1" setting. And write the following regular expression:
Shopify\.country\s=\s"(\w+)";
Then, continue to configure the outputs. Create new properties to store the Regex Text #1.
You can also add the URL Scraping Status output to know when a store is no longer online.
Then run the Bulk Scraper enrichment on your first 10 stores. If the results are good, process the whole list.
To finish, clean unreachable stores to keep only up-to-date Shopify leads.