Skip to content

Instantly share code, notes, and snippets.

from selenium import webdriver
def search_alibaba(term):
'''Searches alibaba site and returns the seller company
name and websites'''
company_info = []
term = term.replace(" ", "_")
browser = webdriver.Firefox()
browser.get('http://www.alibaba.com/corporations/'+term+'/1.html')
@fletom
fletom / crypto.py
Last active December 22, 2015 12:29
import base64
from Crypto.Cipher import AES
from Crypto.Hash import SHA256, HMAC
from Crypto.Random import get_random_bytes
class Cipher(object):
# This can be 16 (AES-128), 24 (AES-192), or 32 (AES-256)
key_length = 32