The ad clicker for blog
Java Shell Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.classpath
.gitignore
.project
LICENSE.TXT
README.TXT
pom.xml

README.TXT

I.  Pre-requirement
	1. JRE 6 or above installed.
	2. One of {firefox, IE, chrome} has been installed.
	
II. How to run?
	1. Download clicker-0.0.X.zip (http://yourchanges.tk/clicker-0.0.4.zip)
	2. unzip it
	3. go to folder "clicker-0.0.X"
	4. modify the conf.json
	5. click run.bat or run.sh to launch the application.
	
	The content of conf.json:
	(The value of "browser" can be "firefox", "ie" or "chrome".)
		{
			"browser":"firefox", 
			
			"baseUrl":[
					"http://my.b3log.org",
					"http://my.b3log.org/2"
					],
			
			"articleLinkXpath":"a[rel~=^bookmark$]",
					
			"useProxy":false,
			
			"proxyHostPortString":[
					"127.0.0.1:8087",
					"109.123.126.253:8080"
					],
					
			"handleArticleNumPerProxy":2,
			
			"adXpath":[
					"//a[4]/img",
					"//a[5]/img"
					],
					
			"adShowTime":2000
		
		}

III. Build from the source
	1. git clone https://github.com/yourchanges/clicker.git
	2. go to folder "clicker"
	3. mvn install
	4. The clicker-0.0.X.zip will be in "target/" folder
	5. See "II. How to run?"
	
IV. Reference
	1. https://code.google.com/p/selenium/wiki/InternetExplorerDriver
	2. https://code.google.com/p/selenium/wiki/ChromeDriver
	4. http://www.proxy360.cn/default.aspx
	3. http://www.cnproxy.com/proxy1.html