This tool helps scrape store details from McDonald's website based on store numbers provided in a CSV file.
Before you start, follow these steps:
- Visit this Google Spreadsheet.
- Download the spreadsheet data.
- Save the downloaded data as
input.csv
in thedata
directory of this project.
Run the scraper with the usual command:
yarn start
After successfully running the scraper, you'll find the results in data/output.csv
.
If you want to use a remote browser via Bright Data for your scraping tasks, follow these steps:
-
Visit Bright Data and create an account.
-
Once your account is set up, add a scraping browser.
-
Navigate to the Access parameters tab in your Bright Data account.
-
Grab the following details:
BRIGHT_DATA_USERNAME
BRIGHT_DATA_PASSWORD
BRIGHT_DATA_HOST
-
Place these details in your
.env
file in the root of this project.
For a more detailed guide, you can watch this video.
Note: You don't need to do this if you don't want to use a remote browser. Also, be aware that using Bright Data will incur additional costs.
Happy scraping!