This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Defini la structure des pages et le xpath pour recuperer les donnees | |
var xpath = '//table[@class="sobi2Listing"]/tr//td'; | |
var baseUrl = "http://www.abcvert.fr/annuaire/energies-renouvelables/solaire"; | |
var getUrl = function(pageIndex) { | |
return baseUrl + ((pageIndex == 0) ? ".html" : "/Page-"+(pageIndex+1)+".html"); | |
}; | |
// Recuperation des contacts | |
var contacts = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git init | |
git add * | |
git commit -m 'first commit' | |
git remote add origin git@github.com:neyric/$1.git | |
git push origin master | |
# Create the gh-pages branch to serve the files from GitHub | |
git branch gh-pages |