Skip to content

Instantly share code, notes, and snippets.

View ssalvatella's full-sized avatar

Samuel Salvatella ssalvatella

  • Zaragoza, Aragón
View GitHub Profile
@ssalvatella
ssalvatella / covid19.py
Last active March 12, 2020 07:49
Consulta la cifra de infectados en el Ministerio de Sanidad y envía una notificación al SO si ha cambiado
#!/usr/bin/env python3
#
# Consulta la cifra de infectados en el Ministerio de Sanidad
# y envía una notificación al SO si ha cambiado.
# Añadir al cron para que se ejecute cada 5 minutos.
#
# Dependencia: sudo apt-get install libnotify-bin
#
@ssalvatella
ssalvatella / colecta_plusdede.py
Created June 13, 2018 00:33
Pequeño ejemplo de script de web scraping sobre la web plusdede.com
import time
import subprocess
from bs4 import BeautifulSoup
from PIL import Image
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By