Bulk Query IP address attribution

Source: Internet
Author: User


[[email protected] xxx]$ cat ip138.shcat ip.txt | while read  mdoip= ' echo  $m  | awk  ' {print $2} ' dizhi= ' curl -s   ' http://ip138.com/ ips138.asp?ip=${ip}&action=2 " |grep  <ul class=" ul1 "><li> '  |awk -f ' [ ><]+ '   ' {print $5} ' echo -e  $m    ${dizhi}   >> ip.dz.txtdone[[email protected] xxx]$ head ip.txt 598701 11.207.128.229   98622 12.92.173.188  80462 15.208.229.76  31146 14.37.157.78   30988 11.41.24.236  28905 12.254.131.172  25674 23.156.196.236  &NBSP;24980&NBSP;22.207.236.213[[EMAIL&NBSP;PROTECTED]&NBSP;XXX]$[[EMAIL&NBSP;PROTECTED]&NBSP;XXX] $sh   ip138.sh[[email protected] xxx]$ cat ip.dz.txt 598701 11.207.128.229     Main data: United States &NBSP;&NBSP;98622&NBsp;12.92.173.188    main data: US   80462 15.208.229.76    main data: USA   HP  31146 14.37.157.78    main data: Korea   30988 11.41.24.236     Main data: United States   28905 12.254.131.172    main data: USA   25674  23.156.196.236    main data: Romania   24980 22.207.236.213    main data: United States   [[email protected] xxx]$


This article from the "Struggle Bar" blog, reproduced please contact the author!

Bulk Query IP address attribution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.