Strip out IP Addresses & URL's from Text File [closed]
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 questionI 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.
- Strip the http:// off the addresses, so it just leaves me the IP or URL
- 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
精彩评论