Skip to content

Instantly share code, notes, and snippets.

Valdir Stumm Jr stummjr

Block or report user

Report or block stummjr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View loginspider.py
# -*- coding:utf-8 -*-
import scrapy
from scrapy.exceptions import CloseSpider
class LoginSpider(scrapy.Spider):
name = 'login-spider'
start_urls = ['http://quotes.toscrape.com/login']
def parse(self, response):
@stummjr
stummjr / splash-spider.py
Last active Jun 6, 2018
Scrapy + Splash example
View splash-spider.py
import scrapy
# this example needs the scrapyjs package: pip install scrapyjs
# it also needs a splash instance running in your env or on Scrapy Cloud (https://github.com/scrapinghub/splash)
class SplashSpider(scrapy.Spider):
name = 'splash-spider'
download_delay = 3
def start_requests(self):
@stummjr
stummjr / BSTNode.py
Last active Aug 19, 2019
BSTNode.py - Binary Search Tree
View BSTNode.py
# -*- encoding:utf-8 -*-
from __future__ import print_function
class BSTNode(object):
def __init__(self, key, value=None, left=None, right=None):
self.key = key
self.value = value
self.left = left
You can’t perform that action at this time.