Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Ryan Stefan dashw00d

🎯
Focusing
View GitHub Profile
@dashw00d
dashw00d / single_file_scrapy.py
Last active Dec 24, 2018
A stand-alone Scrapy script template for rapid scraping development. Uses Item Loaders and automatically gives empty items a default value.
View single_file_scrapy.py
#! /usr/local/bin/python3
# -*- coding: utf-8 -*-
from scrapy.crawler import CrawlerProcess
from scrapy.loader import ItemLoader
from scrapy.loader.processors import TakeFirst, MapCompose, Join
from scrapy import Spider, Item, Field
from scrapy.settings import Settings
# Originally built off of:
@dashw00d
dashw00d / spacing-helpers.css
Created Jan 6, 2019
Spacing helpers I use for materialize content pieces
View spacing-helpers.css
.margin.top-0{
margin-top:0
}
.margin.bottom-0{
bottom-top:0
}
.margin.top-10{
margin-top:10px
}
.margin.bottom-10{
View copy_paste_productifity_hack.py
#! /usr/local/bin/python3
# -*- coding: utf-8-sig -*-
import os
import csv
import pyperclip
bpath = "C:/Program\ Files\ (x86)/Google/Chrome/Application/chrome.exe"
output_file = './output/monitization_results.csv'