File tree Expand file tree Collapse file tree 2 files changed +0
-60
lines changed Expand file tree Collapse file tree 2 files changed +0
-60
lines changed Original file line number Diff line number Diff line change @@ -84,17 +84,3 @@ def format(number):
84
84
"""Reformat the number to the standard presentation format."""
85
85
number = compact (number )
86
86
return '-' .join ([number [:3 ], number [3 :5 ], number [5 :]])
87
-
88
-
89
- def check_ftc (number , timeout = 30 ): # pragma: no cover
90
- """Check the number against the Korea Fair Trade Commission website."""
91
- import lxml .html
92
- import requests
93
- number = compact (number )
94
- url = 'https://www.ftc.go.kr/bizCommPop.do'
95
- document = lxml .html .fromstring (
96
- requests .get (url , params = {'wrkr_no' : number }, timeout = timeout ).text )
97
- data = dict (zip (
98
- [(x .text or '' ).strip () for x in document .findall ('.//th' )],
99
- [(x .text or '' ).strip () for x in document .findall ('.//td' )]))
100
- return data or None
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments