def process(data=None): """ Populate Bubble and Semtiment Charts, then send to profile scraper """ analysis.populate(data) homepage = getUserURL(tweet=data) screenname = getScreenName(tweet=data) headers = {'Content-Type': 'application/json'} if homepage and screenname: data = {'homepage': homepage} url = "http://%s/linkedin/scan" % os.getenv('PROFILES_FQDN') r = requests.post(url, data=json.dumps(data), headers=headers) print r.content
def process(data=None): """ Populate Bubble and Semtiment Charts, then send to profile scraper """ analysis.populate(data) homepage = getUserURL(tweet=data) screenname = getScreenName(tweet=data) headers = {'Content-Type': 'application/json'} if homepage and screenname: data = { 'homepage': homepage } url = "http://%s/linkedin/scan" % os.getenv('PROFILES_FQDN') r = requests.post(url, data = json.dumps(data), headers=headers ) print r.content
def on_success(self, data): """ compute sentiment and populate charts """ analysis.populate(data)