- Log into https://familysearch.org
- Get the ID of the person you want to start at
- Modify the URL below and visit the it
- Copy the response to a text file data.json and run the script
https://www.familysearch.org/service/tree/tree-data/r9/portrait-pedigree/\<userid\>?includeMarriages=true&numGenerations=9