This file contains 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
from datetime import datetime | |
import csv | |
import sys | |
START_DATE = 'start_date' | |
END_DATE = 'end_date' | |
SPELL_ID = 'spell_id' | |
IMPUTED_END_DATE = 'imputed_end_date' | |
TOLERANCE = 31 # days | |
PRIMARY_KEYS = ['frame_id', 'person_id'] |
This file contains 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<html><head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
</head> | |
<body> | |
<script> | |
d3.json("http://htsql.coauthors.net/htsql/industry?country='austria'/:json", function(d) { console.log(d);}); | |
</script> | |
</body> |
This file contains 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
# -*- coding: utf-8 -*- | |
import sys | |
import re | |
import csv | |
where_regex = r"""(In <a href="(?P<url>.*?)">(?P<folder>.*?)</a>, )?""" | |
who_regex = r"(?P<who>.*?)" | |
verb_regex = r"(?P<verb>added|edited|deleted|moved|renamed) " | |
what_regex = r"""(the (file|folder) )?(.*?)<a (.*?) title="(?P<what>.*?)">(.*?)</a>\. """ | |
when_regex = r"(?P<when>.*)$" |
This file contains 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
<html> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js"> {"dataSourceUrl":"//docs.google.com/spreadsheet/tq?key=0AhJS2rfBAT8JdE9HTndrVnNQa2s2b014Q1kzQ2JoMnc&transpose=0&headers=1&merge=COLS&range=B1%3AB160%2CD1%3AD160&gid=0&pub=1","options":{"displayAnnotations":true,"titleTextStyle":{"fontSize":16},"vAxes":[{"useFormatFromData":true,"title":"Left vertical axis title","minValue":null,"viewWindow":{"min":null,"max":null},"maxValue":null},{"useFormatFromData":true,"minValue":null,"viewWindow":{"min":null,"max":null},"maxValue":null}],"booleanRole":"certainty","title":"Chart title","wmode":"opaque","hAxis":{"useFormatFromData":true,"title":"Horizontal axis title","minValue":null,"viewWindow":{"min":null,"max":null},"maxValue":null},"width":960,"height":500},"state":{},"view":{},"isDefaultVisualization":true,"chartType":"AnnotatedTimeLine","chartName":"Chart 1"} </script> | |
</html> |
This file contains 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
license: gpl-3.0 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
import requests | |
from lxml import etree | |
root= 'http://www.agenciatributaria.es' | |
homepage = '/AEAT.internet/Inicio/La_Agencia_Tributaria/Memorias_y_estadisticas_tributarias/Estadisticas/Comercio_exterior/Datos_estadisticos/Descarga_de_Datos_Estadisticos/Descarga_de_datos_mensuales_maxima_desagregacion_en_Euros__centimos_/Descarga_de_datos_mensuales_maxima_desagregacion_en_Euros__centimos_.shtml?mobileView=false' | |
def get_contenido_links(root, url): | |
if not url[0:4]=='http': | |
url = root + url |
This file contains 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
* oszag = 1,2,3 | |
* kategoria = 1,2,3 | |
gen y = 13-3*orszag-kategoria | |
tw (line y data if orszag==1, msymbol(circle)) (line y data if orszag==2, msymbol(circle)) (line y data if orszag==3, msymbol(circle)), ylabel(8 "Ausztria" 5 "Belgium" 2 "Dania") legend(off) |