python3
and scrapy
(pip install scrapy
)
scrapy runspider -o items.csv -a site="https://yoursite.org" 1spider.py
python3 2format_results.py
from flask import Flask, render_template, jsonify, request | |
from threading import Timer, Thread | |
from time import sleep | |
app = Flask(__name__) | |
@app.route("/api/<method>") | |
def api(method): | |
data = { |
import csv | |
from django.http import HttpResponse | |
def export_as_csv_action(description="Export selected objects as CSV file", fields=None, exclude=None, header=True): | |
""" | |
This function returns an export csv action | |
'fields' and 'exclude' work like in django ModelForm | |
'header' is whether or not to output the column names as the first row | |
""" | |
def export_as_csv(modeladmin, request, queryset): |
/* Using this directive is as easy as 1, 2, 3. | |
1. Grab the Tableau API JavaScript library as well as this module. | |
a. <script src="path/to/tableau-2.0.0.min.js"></script> | |
b. <script src="path/to/angular-tableau.js"></script> | |
2. Import the module into your app by adding 'angular-tableau' to your dependencies. | |
3. Use the directive like this: | |
<tableau-viz height="'500px'" | |
url="path/to/tableau-dashboard" | |
filters={'field1':['item1', 'item2'], 'dateField':{'min':startDate, 'max':endDate}}"> | |
</tableau-viz> |
'use strict'; | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var browserSync = require('browser-sync'); | |
var notify = require('gulp-notify'); | |
var less = require('gulp-less'); | |
var autoprefix = require('gulp-autoprefixer'); | |
var minifyCSS = require('gulp-minify-css'); | |
var exec = require('child_process').exec; |
#/usr/bin/python3 | |
""" Demonstration of logging feature for a Flask App. """ | |
from logging.handlers import RotatingFileHandler | |
from flask import Flask, request, jsonify | |
from time import strftime | |
__author__ = "@ivanleoncz" | |
import logging |