开发者

Strip out IP Addresses & URL's from Text File [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 9 hours ago.

Improve this question

I have a tex开发者_如何学Pythont file with a mix of IP's and URL's contained within like so:

http://120.12.224.129
http://58.53.68.83
http://58.243.19.185
http://27.215.141.183
http://125.47.68.112
http://110.180.155.129
http://115.56.112.14
http://182.121.248.199
http://tiltthebrand.com
http://vidyasmakeup.com
http://wizzloans.in
http://we5ayurveda.com
http://travools.in

I need to do two things with these entries.

  1. Strip the http:// off the addresses, so it just leaves me the IP or URL
  2. Strip the IP's out into a separate file Strip URL's out into separate file

If I can achieve the above, I'll be pretty close to done!!

code snippets i cant get working

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜