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
""" | |
Stub for script to query API | |
""" | |
from urllib2 import Request, urlopen, URLError | |
import json | |
import logging | |
from time import sleep | |
URL_STUB = "http://website.com/api?q=" |
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 nameparser import HumanName | |
import codecs | |
import csv | |
# READ NAMES AND FORMAT PROPERLY | |
namefile = codecs.open('names.txt', encoding='utf-16') | |
names = {} | |
for name in namefile: | |
names[name.strip()] = str(HumanName(name.strip())) | |
namefile.close() |
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
""" | |
Stub for scraping-related jobs | |
CSS Selectors Reference: http://www.w3schools.com/cssref/css_selectors.asp | |
""" | |
import requests, lxml.html | |
import re | |
# Select the element using a CSS Selector |
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
""" | |
Stub for scraping-related jobs | |
CSS Selectors Reference: http://www.w3schools.com/cssref/css_selectors.asp | |
""" | |
import requests, lxml.html | |
# Grab HTML from page | |
response = requests.get('https://www.google.com/') |
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
""" | |
Stub for scraping-related jobs | |
CSS Selectors Reference: http://www.w3schools.com/cssref/css_selectors.asp | |
""" | |
import requests, lxml.html | |
# Grab HTML from page | |
response = requests.get('https://www.google.com/') |
NewerOlder