├── README.md ├── ip138.alfredworkflow ├── ip138.sh └── screenshot.png /README.md: -------------------------------------------------------------------------------- 1 | ip138-alfredworkflow 2 | ==================== 3 | 4 | alfredapp v2 workflow: 使用 ip138 来查询 ip 归属地 5 | 6 | Usage: 7 | --- 8 |  9 | 10 | 11 | Installation: 12 | --- 13 | 14 | 1) git clone the Project, or just download the ip138.alfredworkflow. 15 | 16 | 2) Double-click the "ip138.alfredworkflow" to install. 17 | -------------------------------------------------------------------------------- /ip138.alfredworkflow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellosa/ip138-alfredworkflow/7cf953146a83d7c3518f5028efd83fad5870a961/ip138.alfredworkflow -------------------------------------------------------------------------------- /ip138.sh: -------------------------------------------------------------------------------- 1 | ip=$1 2 | 3 | # get the result 4 | url="http://www.ip138.com/ips138.asp?ip=${ip}&action=2" 5 | result=`curl -s $url | grep '