##List of state and state codes
Not an official source
State | Abbreviation | Postal Code |
---|---|---|
Alabama | Ala. | AL |
Alaska | Alaska | AK |
American | Samoa | AS |
Arizona | Ariz. | AZ |
""" | |
Source: https://gist.github.com/thewarpaint/889690aeb21a8dfd7aba | |
""" | |
from __future__ import division | |
def number_suffixes(number): | |
suffixes = ['k', 'M', 'G', 'T', 'P', 'E'] | |
if not isinstance(number, int): | |
return number | |
if number < 1000: |
# DocuSign API Walkthrough 07 (PYTHON) - Embedded Sending | |
import sys, httplib2, json; | |
#enter your info: | |
username = "***"; | |
password = "***"; | |
integratorKey = "***"; | |
templateId = "***"; | |
authenticateStr = "<DocuSignCredentials>" \ |
import requests | |
url = 'http://localhost:6080/crawler' | |
# This will call the crawler objects stop method. | |
# Checkout all the methods the crawler object has: | |
# https://github.com/scrapy/scrapy/blob/master/scrapy/crawler.py#L24 | |
data = '{"id" : 2, "method" : "stop"}' | |
# The project has been moved out of scrapy but heres the web service API |
##List of state and state codes
Not an official source
State | Abbreviation | Postal Code |
---|---|---|
Alabama | Ala. | AL |
Alaska | Alaska | AK |
American | Samoa | AS |
Arizona | Ariz. | AZ |
###How to selenium
Selenium is a browser automation tool used for testing elements in the browser and can also be used by our dear friend scrapy to scrape elements off the internet.
####Install selenium via pip
Run this command on your system. Make sure you have pip installed. If not then, download and run this python program and then run the command below.
pip install selenium
var commentPolicy = function(username,category){ | |
var username = username; | |
var category = category; | |
$('.icon-comment').click(function() { | |
var id = $(this).attr('name'); | |
$("#dialog .policy-comment").val(''); | |
$("#dialog").dialog({ |