Created
June 5, 2019 19:55
-
-
Save itsderek23/c04ae53e5a8561e578121ceaeae4bf13 to your computer and use it in GitHub Desktop.
Export all Hubspot contacts with PetalData
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import petaldata | |
# https://petaldata.app/datasets/hubspot/#auth | |
petaldata.datasets.hubspot.api_key = "[YOUR HUBSPOT API KEY]" | |
contacts = petaldata.datasets.hubspot.Contacts() | |
# Will download ALL hubspot contacts. | |
# See download options at https://petaldata.app/datasets/hubspot/#contacts-download. | |
contacts.download() | |
contacts.save() # Save locally so we don't need to download everything again. | |
df = contacts.df # Access downloaded contacts via a Pandas Dataframe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment