updating readme

This commit is contained in:
Nathan Adams 2015-09-08 21:57:58 -05:00
parent 88d65df2bb
commit b3d4ed5550

View File

@ -23,22 +23,22 @@ Archive projects due to:
Currently srchub and google code are supported. To use: Currently srchub and google code are supported. To use:
from services.srchub import srchub from services.srchub import srchub
shub = srchub() shub = srchub()
projects = shub.getProjects() projects = shub.getProjects()
or for google code or for google code
from services.googlecode import googlecode from services.googlecode import googlecode
gcode = googlecode() gcode = googlecode()
project = gcode.getProject("android-python27") project = gcode.getProject("android-python27")
Sourcehub library will pull all public projects since this list is easily accessed. Google Code does not have a public list persay. And I didn't want to scrape the search results, so I developed it to require you to pass in the project name. If you were to get your hands on a list of google code projects you could easily loop through them: Sourcehub library will pull all public projects since this list is easily accessed. Google Code does not have a public list persay. And I didn't want to scrape the search results, so I developed it to require you to pass in the project name. If you were to get your hands on a list of google code projects you could easily loop through them:
from services.googlecode import googlecode from services.googlecode import googlecode
gcode = googlecode() gcode = googlecode()
for project in someProjectList: for project in someProjectList:
project = gcode.getProject(project) project = gcode.getProject(project)
# do something with project # do something with project
the project data structure is as follows: the project data structure is as follows: