πŸ“ Account Names to Facility Match using PeeringDB

This playbook uses Google Search, PeeringDB and TableOps

Business question: which organizations have data centers located in a given list of locations?

Playbook

Link to the playbook

1. Search Google to get the correct organization names of the accounts

Cell 2 - Tool: Google Search

Search @1.AccountName on site peeringdb.com/org. If "organic" field has more than one item, then look at the first result. If the first result's title has " - " then return the text before " - ". Otherwise return empty.  

Cell 3 - Tool: TableOps

Remove rows where @2.search_account_on_peeringdb is empty. Changing column name @2.search_account_on_peeringdb to corrected_name and return the table.

2. Get organization id of the accounts

Cell 4 - Tool: PeeringDB

Get organization whose name contains @3.corrected_name. Sleep 3s between requests. 

Cell 5 - Tool: TableOps

Return a table with @4.AccountName , @4.corrected_name and org id with 1 org id per row. 

3. Get network id of the accounts

Cell 6 - Tool: PeeringDB

Cell 7 - Tool: TableOps

4. Get facilities of the networks

Cell 8 - Tool: PeeringDB

Cell 9 - Tool: TableOps

5. Match the facility name with some facilities

Cell 10 - Tool: TableOps

Notes

Last updated