Skip to content

EQWorks/mcd-locator-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

McD's Locator Scraper

This tool helps scrape store details from McDonald's website based on store numbers provided in a CSV file.

Preparing Input Data

Before you start, follow these steps:

  1. Visit this Google Spreadsheet.
  2. Download the spreadsheet data.
  3. Save the downloaded data as input.csv in the data directory of this project.

Running the Scraper

Run the scraper with the usual command:

yarn start

Output

After successfully running the scraper, you'll find the results in data/output.csv.

Using a Remote Browser with Bright Data

If you want to use a remote browser via Bright Data for your scraping tasks, follow these steps:

Setup

  1. Visit Bright Data and create an account.

  2. Once your account is set up, add a scraping browser.

  3. Navigate to the Access parameters tab in your Bright Data account.

  4. Grab the following details:

    • BRIGHT_DATA_USERNAME
    • BRIGHT_DATA_PASSWORD
    • BRIGHT_DATA_HOST
  5. 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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published