The better business bureau is a great directory to find local businesses! You can scrape to BBB to create a list for lead generation
You can download ParseHub for free
It’s now time to start scraping data from BBB.
- Install and Open ParseHub, click on “New Project” and enter the URL you will be scraping. In this case, we are scraping the search results page for plumbers in Toronto. The page will now render inside the app.
- Make your first selection by clicking on the name of the first business on the list. It will be highlighted in green to indicate that it has been selected. The rest of the business names will be highlighted in Yellow. In the left sidebar, rename your selection to “business”.
- Now click on the second business name on the page to select them all. All business names on the page will now be highlighted in green.
- ParseHub is now extracting the name and bbb link for each business on the page. Let’s extract more data. Start by clicking on the PLUS(+) sign next to your business selection and click on the “Relative Select” commands.
- Now click on the name of the first business on the page and then on the phone number next to it. An arrow will appear to show the association you’re creating. On the left sidebar, rename your selection to “phone”.
- Repeat steps 4-5 to select and extract more data from this page. We will repeat these steps and extract the business address, number of reviews and business website. Your project should look something like this:
Adding Pagination
ParseHub is now extracting all the data you’ve selected from every business on the first page of search results. Let’s now set it up to extract data from more pages of results.
- First, use the browser tabs and the tabs on the left side of the app to go back to your main template and the search results page.
- Now click on the PLUS(+) sign next to your “page” selection and choose the select command.
- Scroll all the way down to the bottom of the page and click on the “next” link. Rename your selection to “pagination”.
- Use the icon next to your “pagination” selection to expand it.
- Now delete both extract commands under your “pagination” selection by using the icons next to them.
- Now use the PLUS(+) command next to your “pagination” selection and choose the “click” command.
- A pop up will appear asking you if this a “next page” link. Click on “Yes” and enter the number of additional pages you’d like to scrape. In this case, we will scrape 4 more pages.
Running your Scrape
It is now time to run your scrape.
To do this, click on the green “Get Data” button in the left sidebar. Here you, you can test, run or schedule your scrape.
In this case, we will run it right away. ParseHub is now off to scrape the data you have selected from Better Business Bureau.
Final Thoughts
Once your scrape has completed, you will be able to download your data as an Excel or JSON file.
If you run into any issues during your project, please reach out to us via the live chat on our site and we will be happy to assist you.
Happy Scraping!