This file contains hidden or 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
| // Use with : node worldweather.js > weather_europe_`date '+%Y_%m_%d_%H_%M'`.csv | |
| 'use strict'; | |
| const puppeteer = require('puppeteer'); | |
| const fs = require('fs'); | |
| const https = require('https'); | |
| (async() => { | |
| const browser = await puppeteer.launch({ | |
| headless: true |
This file contains hidden or 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
| //Example url : https://www.timeanddate.com/weather/?continent=europe | |
| var cityName = ""; | |
| var weather = ""; | |
| var temperature = ""; | |
| var rows = document.getElementsByTagName("tbody")[0].getElementsByTagName("tr"); | |
| for(i=0; i<rows.length; i++) { | |
| cityName = rows[i].children[0].innerText.replace(" *",""); | |
| weather = rows[i].children[2].children[0].getAttribute("alt"); |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "github.com/gorilla/mux" | |
| "github.com/gorilla/securecookie" | |
| "net/http" | |
| ) | |
| // cookie handling |
This file contains hidden or 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
| Verifying that +guillaumeguerin is my blockchain ID. https://onename.com/guillaumeguerin |