Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 2 KB

README.md

File metadata and controls

49 lines (37 loc) · 2 KB

tree_map_data_scraping

Authors: Philadelphia Phlask Team

Project Summary

This project contains a JavaScript-based web scraping automation tool for Chrome browser. This project requires the Puppeteer dependency install.

Running the script executes a series of headless HTML calls to the Open Tree Map Project Website.

Script Execution Results

  1. Obtains edible tree data for Philadelphia County from The Open Tree Map website
  2. captures a screenshot of each site query (includes number of results found by query)
  3. Creates a folder for tree data within a chosen project folder
  4. Populates the folder with downloaded CSV files

The runtime for this script is approximately 3 minutes.

SET UP/RUN LOCALLY

  1. Clone this repository
  2. Ensure you have Yarn (or the package manager of your choice) installed on your machine
  3. Run yarn install
  4. Run yarn start
  5. Use yarn add puppeteer from the command line
  6. Run the script on the command line using the command node treeMapScraper.js

TREE TYPES RETURNED

"Allegheny Serviceberry" "Apple Serviceberry" "Canadian Serviceberry" "Downy Serviceberry" "Serviceberry [Amelanchier spp]" "Mulberry" "Red Mulberry" "White Mulberry" "Ginkgo"

ScreenShots

Tree Map Site Searchbar Format: Site searchbar

Search by Speacies Populated Format: Search species input

Search by Location Entered Format: Search by location predictive search entry

CSV File Output Format: Search Results as a table