How can I convert HTML to Textile?

前端 未结 5 1511
既然无缘
既然无缘 2021-02-14 01:05

I\'m scraping a static html site and moving the content into a database-backed CMS. I\'d like to use Textile in the CMS.

Is there a tool out there that converts HTML

5条回答
  •  时光说笑
    2021-02-14 01:42

    try this simple java code hope it work for you

    import java.net.*;
    import java.io.*;
    
    class Crawle
    {
    
    public static void main(String ar[])throws Exception
    {
    
    
    URL url = new URL("https://www.google.co.in/#q=i+am+happy");
    InputStream io =  url.openStream();
    BufferedReader br = new BufferedReader(new InputStreamReader(io));
    FileOutputStream fio = new FileOutputStream("crawler/file.txt");
    PrintWriter pr = new PrintWriter(fio,true);
    String data = "";
    while((data=br.readLine())!=null)
    {
    pr.println(data);
    System.out.println(data);
    }
    
    }
    }
    }
    

提交回复
热议问题