ServerPortfolio  2.0
Python parsers and server
 All Classes Namespaces Files Functions Variables Properties Pages
Functions
serverportfolio.Parsers.UtilsParsers Namespace Reference

Utilities functions specific to the parsers. More...

Functions

def web_query
 Execute the url (GET call only, could extend) More...
 
def extract_number
 Extract a float from a string. More...
 
def check_nan
 Check for N/A in Yahoo output, 'N/A' no error. More...
 

Detailed Description

Utilities functions specific to the parsers.

Last Changed

Id:
UtilsParsers.py 13 2015-04-12 19:45:14Z michael

Function Documentation

def serverportfolio.Parsers.UtilsParsers.check_nan (   line)

Check for N/A in Yahoo output, 'N/A' no error.

Parameters
linestring to parse

Definition at line 68 of file UtilsParsers.py.

def serverportfolio.Parsers.UtilsParsers.extract_number (   line)

Extract a float from a string.

General function which checks for 'N/A', '-' and delete blank characters. Specific parsers may implement more pseific functions.

Parameters
linestring to parse
Returns
float or nan may throw different type of error

Definition at line 53 of file UtilsParsers.py.

def serverportfolio.Parsers.UtilsParsers.web_query (   url)

Execute the url (GET call only, could extend)

Returns
web page in a string format

Definition at line 13 of file UtilsParsers.py.