Package usufy :: Module usufy
[hide private]
[frames] | no frames]

Module usufy

source code


usufy.py Copyright (C) F. Brezo and Y. Rubio (i3visio) 2014
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
For details, run:
        python usufy.py --license

Functions [hide private]
 
resultsToCSV(res)
Method to generate the text to be appended to a CSV file.
source code
 
resultsToJson(profiles)
Method to generate the text to be appended to a Json file.
source code
 
getPageWrapper(p, nick, rutaDescarga, avoidProcessing, outQueue=None)
Method that wraps the call to the getUserPage.
source code
 
processNickList(nicks, platforms=None, rutaDescarga=None, avoidProcessing=True)
Method that receives as a parameter a series of nicks and verifies whether those nicks have a profile associated in different social networks.
source code
Variables [hide private]
  __package__ = 'usufy'
Function Details [hide private]

resultsToCSV(res)

source code 
Method to generate the text to be appended to a CSV file.

Return values:
        csvText as the string to be written in a CSV file.                              

resultsToJson(profiles)

source code 

Method to generate the text to be appended to a Json file.

List of parameters that the method receives:
profiles:       a dictionary with the information of the profiles

Return values:
        jsonText as the string to be written in a Json file.                              

getPageWrapper(p, nick, rutaDescarga, avoidProcessing, outQueue=None)

source code 

Method that wraps the call to the getUserPage.

List of parameters that the method receives:
p:              platform where the information is stored.
nick:           nick to be searched.
rutaDescarga:   local file where saving the obtained information.
avoidProcessing:boolean var that defines whether the profiles will NOT be processed (stored in this version).
outQueue:       Queue where the information will be stored.

Return values:
        None if a queue is provided. Note that the values will be stored in the outQueue
        Else (p, url).

processNickList(nicks, platforms=None, rutaDescarga=None, avoidProcessing=True)

source code 

Method that receives as a parameter a series of nicks and verifies whether those nicks have a profile associated in different social networks.

List of parameters that the method receives:
nicks:          list of nicks to process.
platforms:      list of <Platform> objects to be processed. 
rutaDescarga:   local file where saving the obtained information.
avoidProcessing:boolean var that defines whether the profiles will NOT be processed (stored in this version).

Return values:
        Returns a dictionary where the key is the nick and the value another dictionary where the keys are the social networks and te value is the corresponding URL.