Skip to content

Instantly share code, notes, and snippets.

View setup github project
#!/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
View gist:106224
// 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 = {};