forked from ParryQiu/Generate-Cnblogs-Articles-To-Markdown
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Program.cs
executable file
·33 lines (28 loc) · 1010 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using Common.Helper;
using Html2Markdown;
namespace Generate_Cnblogs_Articles_To_Markdown_Files
{
internal class Program
{
private static void Main(string[] args)
{
//Init
if (!Directory.Exists(Application.StartupPath + "\\output\\"))
{
Directory.CreateDirectory(Application.StartupPath + "\\output\\");
}
if (!Directory.Exists(Application.StartupPath + "\\images\\"))
{
Directory.CreateDirectory(Application.StartupPath + "\\images\\");
}
CnblogsHelper.ExportToMarkdown("pangguoming",19, 20, true, "http://pangguoming.com/blog/images/");
Console.WriteLine("All the Articles are generated successfully!Press any key to quit..");
Console.Read();
}
}
}