codescrape

codescrape Commit Details


Date:2015-09-08 21:57:58 (9 years 3 months ago)
Author:Natalie Adams
Branch:master
Commit:b3d4ed55503cce1793d9470cc6147806a5c24c36
Parents: 88d65df2bb567eea5fdd6e7b9f9b7375672cfb4d
Message:updating readme

Changes:

File differences

README.txt
2323
2424
2525
26
27
26
27
2828
2929
3030
31
32
33
31
32
33
3434
3535
3636
37
38
39
40
41
37
38
39
40
41
4242
4343
4444
Currently srchub and google code are supported. To use:
from services.srchub import srchub
shub = srchub()
projects = shub.getProjects()
shub = srchub()
projects = shub.getProjects()
or for google code
from services.googlecode import googlecode
gcode = googlecode()
project = gcode.getProject("android-python27")
from services.googlecode import googlecode
gcode = googlecode()
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:
from services.googlecode import googlecode
gcode = googlecode()
for project in someProjectList:
project = gcode.getProject(project)
# do something with project
from services.googlecode import googlecode
gcode = googlecode()
for project in someProjectList:
project = gcode.getProject(project)
# do something with project
the project data structure is as follows:

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.11047s using 14 queries.