π [Long list] 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
Please pay attention to the spaces between words in each query. There must be only 1 blank space.
1. Search Google to get the correct organization names of the accounts
Cell 2 - Tool: TableOps
Drop rows with duplication in @1.AccountNameCell 3 - Tool: Google Search
Search @2.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 4 - Tool: TableOps
Drop rows where @3.search_account_on_peeringdb is duplicated or empty. Change column name @3.search_account_on_peeringdb to corrected_name and return the table.Note that in the table generated by the previous cell, the name of the column might be different, not "search_account_on_peeringdb". Use @ to get the right name.
2. Get organization id of the accounts
Cell 5 - Tool: PeeringDB
Get organization with name contains @4.corrected_name. sleep 3s between requests.Cell 6 - Tool: TableOps
3. Get network id of the accounts
Cell 7 - Tool: PeeringDB
Cell 8 - Tool: TableOps
4. Get facilities of the networks
Cell 9 - Tool: PeeringDB
Cell 10 - Tool: TableOps
5. Match the facility name with some facilities
Cell 11 - Tool: TableOps
Cell 12 - Tool: TableOps
Notes
When the number of rows is large, add this prompt to the query to avoid PeeringDB throttling error message.
"Sleep 3s between requests."
Last updated