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
| void setup() { | |
| pinMode (2,OUTPUT);//attach pin 2 to vcc | |
| pinMode (5,OUTPUT);//attach pin 5 to GND | |
| // initialize serial communication: | |
| Serial.begin(9600); | |
| } | |
| void loop() | |
| { | |
| digitalWrite(2, HIGH); |
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
| # first you need to make sure you have the libraries installed; I'm using pyquery and requests: | |
| # pip install pyquery requests | |
| import requests | |
| from pyquery import PyQuery as pq | |
| from urlparse import urljoin | |
| URL = "http://www.stat-gabon.org/" | |
| response = requests.get(URL) |
OlderNewer