{"id":19075256,"url":"https://github.com/0xvpr/us-area-code-scraper","last_synced_at":"2025-02-22T04:42:36.239Z","repository":{"id":119531102,"uuid":"430031228","full_name":"0xvpr/US-area-code-scraper","owner":"0xvpr","description":"Python based script that scrapes worldatlas.com for all current area codes in the US.","archived":false,"fork":false,"pushed_at":"2021-11-20T12:28:17.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T17:50:06.022Z","etag":null,"topics":["area-code","beautifulsoup4","list","python","webscraper","webscraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xvpr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-20T06:50:14.000Z","updated_at":"2022-03-29T04:46:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c30e978-22ca-4b41-a02c-da79bd88451e","html_url":"https://github.com/0xvpr/US-area-code-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvpr%2FUS-area-code-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvpr%2FUS-area-code-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvpr%2FUS-area-code-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvpr%2FUS-area-code-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xvpr","download_url":"https://codeload.github.com/0xvpr/US-area-code-scraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240127086,"owners_count":19751938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["area-code","beautifulsoup4","list","python","webscraper","webscraping"],"created_at":"2024-11-09T01:54:09.252Z","updated_at":"2025-02-22T04:42:36.234Z","avatar_url":"https://github.com/0xvpr.png","language":"Python","readme":"# US Area Code Scraper\nThis script scrapes worldatlas's \u003ca href=\"https://www.worldatlas.com/na/us/area-codes.html\"\u003eUS Area Code Map\u003c/a\u003e and parses it to create  \na python dict. The dict is then formatted into a copy-pastable code snippet.\n\nAny contributions and suggestions are welcome.\n\n### Python (tuple):\n```\nus_area_codes_tuple = ( # Alaska\n                        907, \n                        # Alabama\n                        205, 251, 256, 334, \n                        # Arkansas\n                        479, 501, 870, \n                        # Arizona\n                        480, 520, 602, 623, 928, \n                        # California\n                        209, 213, 310, 323, 408, 415, 510, 530, 559, 562, \n                        619, 626, 650, 661, 707, 714, 760, 805, 818, 831, \n                        858, 909, 916, 925, 949, 951, \n                        # Colorado\n                        303, 719, 970, \n                        # Connecticut\n                        203, 860, \n                        # District of Columbia\n                        202, \n                        # Delaware\n                        302, \n                        # Florida\n                        239, 305, 321, 352, 386, 407, 561, 727, 772, 813, \n                        850, 863, 904, 941, 954, \n                        # Georgia\n                        229, 404, 478, 706, 770, 912, \n                        # Hawaii\n                        808, \n                        # Iowa\n                        319, 515, 563, 641, 712, \n                        # Idaho\n                        208, \n                        # Illinois\n                        217, 309, 312, 618, 630, 708, 773, 815, 847, \n                        # Indiana\n                        219, 260, 317, 574, 765, 812, \n                        # Kansas\n                        316, 620, 785, 913, \n                        # Kentucky\n                        270, 502, 606, 859, \n                        # Louisiana\n                        225, 318, 337, 504, 985, \n                        # Massachusetts\n                        413, 508, 617, 781, 978, \n                        # Maryland\n                        301, 410, \n                        # Maine\n                        207, \n                        # Michigan\n                        231, 248, 269, 313, 517, 586, 616, 734, 810, 906, \n                        989, \n                        # Minnesota\n                        218, 320, 507, 612, 651, 763, 952, \n                        # Missouri\n                        314, 417, 573, 636, 660, 816, \n                        # Mississippi\n                        228, 601, 662, \n                        # Montana\n                        406, \n                        # North Carolina\n                        252, 336, 704, 828, 910, 919, \n                        # North Dakota\n                        701, \n                        # Nebraska\n                        308, 402, \n                        # New Hampshire\n                        603, \n                        # New Jersey\n                        201, 609, 732, 856, 908, 973, \n                        # New Mexico\n                        505, 575, \n                        # Nevada\n                        702, 775, \n                        # New York\n                        212, 315, 516, 518, 585, 607, 631, 716, 718, 845, \n                        914, \n                        # Ohio\n                        216, 330, 419, 440, 513, 614, 740, 937, \n                        # Oklahoma\n                        405, 580, 918, \n                        # Oregon\n                        503, 541, \n                        # Pennsylvania\n                        215, 412, 570, 610, 717, 724, 814, \n                        # Rhode Island\n                        401, \n                        # South Carolina\n                        803, 843, 864, \n                        # South Dakota\n                        605, \n                        # Tennessee\n                        423, 615, 731, 865, 901, 931, \n                        # Texas\n                        210, 214, 254, 281, 325, 361, 409, 432, 512, 713, \n                        806, 817, 830, 903, 915, 936, 940, 956, 972, 979, \n                        # Utah\n                        435, 801, \n                        # Virginia\n                        276, 434, 540, 703, 757, 804, \n                        # Vermont\n                        802, \n                        # Washington\n                        206, 253, 360, 425, 509, \n                        # Wisconsin\n                        262, 414, 608, 715, 920, \n                        # West Virginia\n                        304, \n                        # Wyoming\n                        307 )\n```\n\n### C (const int array):\n```\nconst int us_area_codes[241] = { // Alaska\n                                 907, \n                                 // Alabama\n                                 205, 251, 256, 334, \n                                 // Arkansas\n                                 479, 501, 870, \n                                 // Arizona\n                                 480, 520, 602, 623, 928, \n                                 // California\n                                 209, 213, 310, 323, 408, 415, 510, 530, 559, 562, \n                                 619, 626, 650, 661, 707, 714, 760, 805, 818, 831, \n                                 858, 909, 916, 925, 949, 951, \n                                 // Colorado\n                                 303, 719, 970, \n                                 // Connecticut\n                                 203, 860, \n                                 // District of Columbia\n                                 202, \n                                 // Delaware\n                                 302, \n                                 // Florida\n                                 239, 305, 321, 352, 386, 407, 561, 727, 772, 813, \n                                 850, 863, 904, 941, 954, \n                                 // Georgia\n                                 229, 404, 478, 706, 770, 912, \n                                 // Hawaii\n                                 808, \n                                 // Iowa\n                                 319, 515, 563, 641, 712, \n                                 // Idaho\n                                 208, \n                                 // Illinois\n                                 217, 309, 312, 618, 630, 708, 773, 815, 847, \n                                 // Indiana\n                                 219, 260, 317, 574, 765, 812, \n                                 // Kansas\n                                 316, 620, 785, 913, \n                                 // Kentucky\n                                 270, 502, 606, 859, \n                                 // Louisiana\n                                 225, 318, 337, 504, 985, \n                                 // Massachusetts\n                                 413, 508, 617, 781, 978, \n                                 // Maryland\n                                 301, 410, \n                                 // Maine\n                                 207, \n                                 // Michigan\n                                 231, 248, 269, 313, 517, 586, 616, 734, 810, 906, \n                                 989, \n                                 // Minnesota\n                                 218, 320, 507, 612, 651, 763, 952, \n                                 // Missouri\n                                 314, 417, 573, 636, 660, 816, \n                                 // Mississippi\n                                 228, 601, 662, \n                                 // Montana\n                                 406, \n                                 // North Carolina\n                                 252, 336, 704, 828, 910, 919, \n                                 // North Dakota\n                                 701, \n                                 // Nebraska\n                                 308, 402, \n                                 // New Hampshire\n                                 603, \n                                 // New Jersey\n                                 201, 609, 732, 856, 908, 973, \n                                 // New Mexico\n                                 505, 575, \n                                 // Nevada\n                                 702, 775, \n                                 // New York\n                                 212, 315, 516, 518, 585, 607, 631, 716, 718, 845, \n                                 914, \n                                 // Ohio\n                                 216, 330, 419, 440, 513, 614, 740, 937, \n                                 // Oklahoma\n                                 405, 580, 918, \n                                 // Oregon\n                                 503, 541, \n                                 // Pennsylvania\n                                 215, 412, 570, 610, 717, 724, 814, \n                                 // Rhode Island\n                                 401, \n                                 // South Carolina\n                                 803, 843, 864, \n                                 // South Dakota\n                                 605, \n                                 // Tennessee\n                                 423, 615, 731, 865, 901, 931, \n                                 // Texas\n                                 210, 214, 254, 281, 325, 361, 409, 432, 512, 713, \n                                 806, 817, 830, 903, 915, 936, 940, 956, 972, 979, \n                                 // Utah\n                                 435, 801, \n                                 // Virginia\n                                 276, 434, 540, 703, 757, 804, \n                                 // Vermont\n                                 802, \n                                 // Washington\n                                 206, 253, 360, 425, 509, \n                                 // Wisconsin\n                                 262, 414, 608, 715, 920, \n                                 // West Virginia\n                                 304, \n                                 // Wyoming\n                                 307 };\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xvpr%2Fus-area-code-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xvpr%2Fus-area-code-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xvpr%2Fus-area-code-scraper/lists"}