This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |