import requests
import pandas as pd

r = requests.get("http://www.malwaredomainlist.com/hostslist/ip.txt")

ips = r.text.split("\n")

df = pd.DataFrame(ips, columns=['IP_Adrress'])
df.to_csv("malwaredomainlist.csv")