Subversion Repositories SmartDukaan

Rev

Rev 5346 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5314 varun.gupt 1
package in.shop2020.util;
2
 
3
public class MostComparedIndexGenerator {
4
	private String[] indentation = {"", "    ", "        ", "            ","                "};
5
 
6
	public void generate()	{
7
		StringBuilder sb = new StringBuilder();
8
 
9
		sb.append(indentation[1] + "<div>\n");
10
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1002160&amp;p2=1000541'>Samsung Galaxy Y S5360 vs Samsung Galaxy Pop S5570</a>\n");
11
		sb.append(indentation[1] + "</div>\n");
12
 
13
		sb.append(indentation[1] + "<div>\n");
14
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1002151&amp;p2=1002160'>Samsung Galaxy Y S5360 Vs HTC Explorer (Pico) A310e</a>\n");
15
		sb.append(indentation[1] + "</div>\n");
16
 
17
		sb.append(indentation[1] + "<div>\n");
18
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1002444&amp;p2=1002153'>Samsung Galaxy Y S5360 Vs Nokia 500</a>\n");
19
		sb.append(indentation[1] + "</div>\n");
20
 
21
		sb.append(indentation[1] + "<div>\n");
22
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1000483&amp;p2=1002444'>Spice Mi-270 Vs Samsung Galaxy Y Color</a>\n");
23
		sb.append(indentation[1] + "</div>\n");
24
 
25
		sb.append(indentation[1] + "<div>\n");
26
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1001224&amp;p2=1002467'>Spice Mi-310 Vs Spice Mi-280</a>\n");
27
		sb.append(indentation[1] + "</div>\n");
28
 
29
		sb.append(indentation[1] + "<div>\n");
30
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1000483&amp;p2=1002467'>Spice Mi-270 Vs Spice Mi-280</a>\n");
31
		sb.append(indentation[1] + "</div>\n");
32
 
33
		sb.append(indentation[1] + "<div>\n");
34
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1002467&amp;p2=1000483'>Spice Mi-280 Vs Spice Mi-270</a>\n");
35
		sb.append(indentation[1] + "</div>\n");
36
 
37
		sb.append(indentation[1] + "<div>\n");
38
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1002575&amp;p2=1002444'>Samsung Galaxy Y Duos S6102 Vs Samsung Galaxy Y Color S5360s</a>\n");
39
		sb.append(indentation[1] + "</div>\n");
40
 
41
		sb.append(indentation[1] + "<div>\n");
42
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1001224&amp;p2=1000483'>Spice Mi-310 Vs Spice Mi-270</a>\n");
43
		sb.append(indentation[1] + "</div>\n");
44
 
45
		sb.append(indentation[1] + "<div>\n");
46
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1000483&amp;p2=1000357'>Spice Mi-270 Vs Micromax Andro A60</a>\n");
47
		sb.append(indentation[1] + "</div>\n");
48
 
49
		sb.append(indentation[1] + "<div>\n");
50
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1000483&amp;p2=1002124'>Spice Mi-270 Vs Karbonn A 1</a>\n");
51
		sb.append(indentation[1] + "</div>\n");
52
 
53
		sb.append(indentation[1] + "<div>\n");
54
		sb.append(indentation[2] + "<a href='http://www.saholic.com/compare-mobile-phones?p1=1002575&amp;p2=1002160'>Samsung Galaxy Y Duos S6102 Vs Samsung Galaxy Y S5360</a>\n");
55
		sb.append(indentation[1] + "</div>\n");
56
 
57
		String indexFilename = Utils.EXPORT_PARTNERS_CONTENT_PATH + "most-compared-index.html";
58
 
59
		try	{
60
			DBUtils.store(sb.toString(), indexFilename);
61
 
62
		} catch (Exception e) {
63
			e.printStackTrace();
64
		}
65
	}
66
 
67
	public static void main(String[] args) {
68
		MostComparedIndexGenerator g = new MostComparedIndexGenerator();
69
		g.generate();
70
	}
71
}