summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoravencall@githardware <avencall@githardware>2012-09-17 17:01:29 +0200
committeravencall@githardware <avencall@githardware>2012-09-17 17:01:29 +0200
commit4209ea3b37b5c0471720d5e6fd8c96933f309a67 (patch)
tree01fa5bd9da4e2aeeecd2183b21c4e0e7849b0937
parent537f3e5f072aac0629df1520b723846f5dc41639 (diff)
change port and phantomjs path
-rw-r--r--digikey.coffee4
-rwxr-xr-x[-rw-r--r--]digikey.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/digikey.coffee b/digikey.coffee
index b372ca7..f1a9580 100644
--- a/digikey.coffee
+++ b/digikey.coffee
@@ -1,12 +1,10 @@
-#!/home/xilun/phantomjs-1.6.1-linux-x86_64-dynamic/bin/phantomjs
-
webpage = require('webpage')
server = require('webserver').create()
query_parse = /search\/([^&]+)/
url = 'http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name='
-service = server.listen 8080, (request, response) ->
+service = server.listen 8086, (request, response) ->
page = webpage.create()
search = query_parse.exec request.url
diff --git a/digikey.js b/digikey.js
index 9f4a571..ca4bc81 100644..100755
--- a/digikey.js
+++ b/digikey.js
@@ -1,3 +1,5 @@
+#!/usr/local/phamtomjs-1.6.1/bin/phantomjs
+
// Generated by CoffeeScript 1.3.3
(function() {
var query_parse, server, service, url, webpage;
@@ -10,7 +12,7 @@
url = 'http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=';
- service = server.listen(8080, function(request, response) {
+ service = server.listen(8086, function(request, response) {
var page, search, thisUrl, tries;
page = webpage.create();
search = query_parse.exec(request.url);