Using Requests and Beautiful Soup, with the most recent Beautiful Soup 4 docs.
Install our tools (preferably in a new virtualenv):
pip install beautifulsoup4
| /* Para agregar post a favoritos cada 3 segundos empezando desde z y bajando de a 1 repitiendo w veces. | |
| Pegar este codigo en la consola de tu explorador. | |
| IMPORTANTE: asegurate de estar dentro de un post o el script no funcionara */ | |
| var i = 0; | |
| var x = 0; | |
| var z = 17888710; //abrir el post mas actual de la home de Taringa y copiar el numero del ultimo post que aparece en el link | |
| var w = 10; // cantidad de posts a favoritos (numero alto para que nunca termine) |
| /* Para usuario cada 3 segundos empezando desde z y bajando de a 1 repitiendo w veces. | |
| Pegar este codigo en la consola de tu explorador. | |
| IMPORTANTE: asegurate de estar dentro del perfil de algun usuario o el script no funcionara */ | |
| var i = 0; | |
| var x = 0; | |
| var z = 2878217; | |
| var w = 10; // cantidad de usuarios a seguir (numero alto para que nunca termine) |
| /* Para agregar temas a favoritos cada 3 segundos empezando desde z y bajando de a 1 repitiendo w veces. | |
| Pegar este codigo en la consola de tu explorador. | |
| IMPORTANTE: asegurate de estar dentro de un tema de alguna comunidad o el script no funcionara */ | |
| var i = 0; | |
| var x = 0; | |
| var z = 8772206; | |
| var w = 10; // cantidad de temas a favoritos (numero alto para que nunca termine) |
| <?php | |
| /* | |
| ################################################ | |
| FECHA: 15/1/2016 | |
| CREADO POR: COSME-FULANITOS Y KADARYAN | |
| SISTEMA BASICO DE SHOUTS DE TARINGA | |
| CONFIGURACION: | |
| - crear un archivo de texto en el mismo directorio que se llame "historial.txt" | |
| NOTA: |
| <?php | |
| /* | |
| ################################################ | |
| FECHA: 22/2/2016 | |
| CREADO POR: COSME-FULANITOS | |
| AQUI ESTOY KIO4.COM | |
| CONFIGURACION: | |
| - enviar las coordenadas con el siguiente formato: -0.27907,-78.48124 | |
| EJEMPLO: | |
| - http://kio4.com/ubicacion.php?coords=-0.27907,-78.48124 |
| ''' | |
| Most heatmap tutorials I found online use pyplot.pcolormesh with random sets of | |
| data from Numpy; I just needed to plot x, y, z values stored in lists--without | |
| all the Numpy mumbo jumbo. Here I have code to plot intensity on a 2D array, and | |
| I only use Numpy where I need to (pcolormesh expects Numpy arrays as inputs). | |
| ''' | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| #here's our data to plot, all normal Python lists |
| x = 64 | |
| y = 64 | |
| function _update() | |
| if (btn(0)) then x=x-1 end | |
| if (btn(1)) then x=x+1 end | |
| if (btn(2)) then y=y-1 end | |
| if (btn(3)) then y=y+1 end | |
| end |
| #For a more advanced example look here: http://copitosystem.com/courses/dice-simulator-course/ | |
| import random | |
| while True: | |
| rolled = random.randint(1,6) | |
| print("The dice rolled and you got: ", rolled) | |
| input("Press enter key to roll again.") |
Using Requests and Beautiful Soup, with the most recent Beautiful Soup 4 docs.
Install our tools (preferably in a new virtualenv):
pip install beautifulsoup4
| from flask import Flask | |
| from flask import request | |
| import json | |
| import requests | |
| import hashlib as hasher | |
| import datetime as date | |
| node = Flask(__name__) | |
| # Define what a Snakecoin block is | |
| class Block: |