Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files- .gitignore +1 -0
- README.md +13 -5
- space.py +23 -12
.gitignore
CHANGED
|
@@ -1 +1,2 @@
|
|
| 1 |
*.pyc
|
|
|
|
|
|
| 1 |
*.pyc
|
| 2 |
+
*.xlsx
|
README.md
CHANGED
|
@@ -52,13 +52,21 @@ The input must be a valid JSON object with the required fields for Apollo API qu
|
|
| 52 |
|
| 53 |
You can get the input from Aollo website like this.
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |

|
|
|
|
| 62 |
|
| 63 |
|
| 64 |
## Output
|
|
|
|
| 52 |
|
| 53 |
You can get the input from Aollo website like this.
|
| 54 |
|
| 55 |
+
## How to get JSON input ##
|
| 56 |
+
|
| 57 |
+
1. Go to the Apollo filtered link (for example):
|
| 58 |
+
[Apollo Filtered Link](https://app.apollo.io/#/people?page=1&contactEmailStatusV2[]=likely_to_engage&contactEmailStatusV2[]=verified&prospectedByCurrentTeam[]=no&sortByField=%5Bnone%5D&sortAscending=false&includedOrganizationKeywordFields[]=tags&includedOrganizationKeywordFields[]=name&organizationIndustryTagIds[]=5567cd4773696439b10b0000&personLocations[]=United%20States&organizationNumEmployeesRanges[]=21%2C50&organizationNumEmployeesRanges[]=51%2C100&organizationNumEmployeesRanges[]=101%2C200&organizationNumEmployeesRanges[]=201%2C500&excludedOrganizationKeywordFields[]=tags&excludedOrganizationKeywordFields[]=name&excludedOrganizationKeywordFields[]=social_media_description&excludedOrganizationKeywordFields[]=seo_description&personDepartmentOrSubdepartments[]=master_human_resources&personSeniorities[]=entry&personSeniorities[]=senior&personSeniorities[]=manager&personSeniorities[]=director&personSeniorities[]=head&personSeniorities[]=vp&personSeniorities[]=c_suite&personSeniorities[]=partner)
|
| 59 |
+
|
| 60 |
+
2. Open **Inspect Element** in your browser and navigate to the **Network** tab.
|
| 61 |
+
|
| 62 |
+
3. Click on the first **"search"** entry in the **Name** column.
|
| 63 |
+
|
| 64 |
+
4. Click on **"View Parsed"** and copy the entire payload.
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
|
| 68 |

|
| 69 |
+
|
| 70 |
|
| 71 |
|
| 72 |
## Output
|
space.py
CHANGED
|
@@ -45,11 +45,13 @@ def process_inputs(api_key, json_data):
|
|
| 45 |
|
| 46 |
# Interface setup
|
| 47 |
with gr.Blocks() as iface:
|
| 48 |
-
gr.Markdown(
|
|
|
|
| 49 |
# Leads Fetcher
|
| 50 |
This tool allows you to input JSON data and fetch the corresponding leads.
|
| 51 |
Make sure to enter a valid API Key and your JSON data to get the CSV preview and download the converted Excel file.
|
| 52 |
-
"""
|
|
|
|
| 53 |
|
| 54 |
with gr.Row():
|
| 55 |
with gr.Column():
|
|
@@ -88,25 +90,34 @@ with gr.Blocks() as iface:
|
|
| 88 |
examples = gr.Examples(
|
| 89 |
examples=[
|
| 90 |
[
|
| 91 |
-
"OykhjTWxqLFmU4fXgwqK5A",
|
| 92 |
-
'{"page":1,"sort_by_field":"[none]","sort_ascending":false,"contact_email_status_v2":["likely_to_engage","verified"],"person_department_or_subdepartments":["master_sales"],"person_locations":["United States"],"person_seniorities":["director"],"included_organization_keyword_fields":["tags","name","social_media_description","seo_description"],"q_organization_keyword_tags":["app development"],"organization_num_employees_ranges":["101,200"],"display_mode":"explorer_mode","per_page":25,"open_factor_names":[],"num_fetch_result":1,"context":"people-index-page","show_suggestions":false,"include_account_engagement_stats":false,"include_contact_engagement_stats":false,"finder_version":2,"ui_finder_random_seed":"6gfkmmnjsqn","typed_custom_fields":[],"cacheKey":1735714146736}'
|
| 93 |
]
|
| 94 |
],
|
| 95 |
inputs=[api_key_input, json_input],
|
| 96 |
)
|
| 97 |
|
| 98 |
-
|
| 99 |
gr.Markdown("<hr>")
|
| 100 |
|
| 101 |
-
gr.Markdown(
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |

|
| 109 |
-
|
|
|
|
|
|
|
| 110 |
|
| 111 |
|
| 112 |
iface.launch(share=True)
|
|
|
|
| 45 |
|
| 46 |
# Interface setup
|
| 47 |
with gr.Blocks() as iface:
|
| 48 |
+
gr.Markdown(
|
| 49 |
+
"""
|
| 50 |
# Leads Fetcher
|
| 51 |
This tool allows you to input JSON data and fetch the corresponding leads.
|
| 52 |
Make sure to enter a valid API Key and your JSON data to get the CSV preview and download the converted Excel file.
|
| 53 |
+
"""
|
| 54 |
+
)
|
| 55 |
|
| 56 |
with gr.Row():
|
| 57 |
with gr.Column():
|
|
|
|
| 90 |
examples = gr.Examples(
|
| 91 |
examples=[
|
| 92 |
[
|
| 93 |
+
"OykhjTWxqLFmU4fXgwqK5A",
|
| 94 |
+
'{"page":1,"sort_by_field":"[none]","sort_ascending":false,"contact_email_status_v2":["likely_to_engage","verified"],"person_department_or_subdepartments":["master_sales"],"person_locations":["United States"],"person_seniorities":["director"],"included_organization_keyword_fields":["tags","name","social_media_description","seo_description"],"q_organization_keyword_tags":["app development"],"organization_num_employees_ranges":["101,200"],"display_mode":"explorer_mode","per_page":25,"open_factor_names":[],"num_fetch_result":1,"context":"people-index-page","show_suggestions":false,"include_account_engagement_stats":false,"include_contact_engagement_stats":false,"finder_version":2,"ui_finder_random_seed":"6gfkmmnjsqn","typed_custom_fields":[],"cacheKey":1735714146736}',
|
| 95 |
]
|
| 96 |
],
|
| 97 |
inputs=[api_key_input, json_input],
|
| 98 |
)
|
| 99 |
|
|
|
|
| 100 |
gr.Markdown("<hr>")
|
| 101 |
|
| 102 |
+
gr.Markdown(
|
| 103 |
+
"""
|
| 104 |
+
## How to get JSON input ##
|
| 105 |
+
|
| 106 |
+
1. Go to the Apollo filtered link (for example):
|
| 107 |
+
[Apollo Filtered Link](https://app.apollo.io/#/people?page=1&contactEmailStatusV2[]=likely_to_engage&contactEmailStatusV2[]=verified&prospectedByCurrentTeam[]=no&sortByField=%5Bnone%5D&sortAscending=false&includedOrganizationKeywordFields[]=tags&includedOrganizationKeywordFields[]=name&organizationIndustryTagIds[]=5567cd4773696439b10b0000&personLocations[]=United%20States&organizationNumEmployeesRanges[]=21%2C50&organizationNumEmployeesRanges[]=51%2C100&organizationNumEmployeesRanges[]=101%2C200&organizationNumEmployeesRanges[]=201%2C500&excludedOrganizationKeywordFields[]=tags&excludedOrganizationKeywordFields[]=name&excludedOrganizationKeywordFields[]=social_media_description&excludedOrganizationKeywordFields[]=seo_description&personDepartmentOrSubdepartments[]=master_human_resources&personSeniorities[]=entry&personSeniorities[]=senior&personSeniorities[]=manager&personSeniorities[]=director&personSeniorities[]=head&personSeniorities[]=vp&personSeniorities[]=c_suite&personSeniorities[]=partner)
|
| 108 |
+
|
| 109 |
+
2. Open **Inspect Element** in your browser and navigate to the **Network** tab.
|
| 110 |
+
|
| 111 |
+
3. Click on the first **"search"** entry in the **Name** column.
|
| 112 |
+
|
| 113 |
+
4. Click on **"View Parsed"** and copy the entire payload.
|
| 114 |
+
|
| 115 |
+
---
|
| 116 |
|
| 117 |

|
| 118 |
+
|
| 119 |
+
"""
|
| 120 |
+
)
|
| 121 |
|
| 122 |
|
| 123 |
iface.launch(share=True)
|