This file contains hidden or 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 re | |
import sys | |
import time | |
import string | |
import csv | |
import urlparse | |
from bs4 import BeautifulSoup | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.common.keys import Keys |
This file contains hidden or 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 sys | |
from urllib2 import urlopen, URLError | |
from argparse import ArgumentParser | |
from bs4 import BeautifulSoup | |
import csv | |
def parse_arguments(): | |
""" Process command line arguments """ | |
parser = ArgumentParser(description='Grabs tables from html') | |
parser.add_argument('-u', '--url', help='url to grab from', |