|
From: <gea...@us...> - 2009-01-26 10:28:43
|
Revision: 317
http://mypyspace.svn.sourceforge.net/mypyspace/?rev=317&view=rev
Author: gearmonkey
Date: 2009-01-26 10:28:38 +0000 (Mon, 26 Jan 2009)
Log Message:
-----------
fixed lots of spelling errors in the newly added bits of myspace2rdf.
it's scrape not scrap or crap
and
scraping not scrapping
good.
Modified Paths:
--------------
musicGrabber/branches/webserv-branch/myspace2rdf.py
Modified: musicGrabber/branches/webserv-branch/myspace2rdf.py
===================================================================
--- musicGrabber/branches/webserv-branch/myspace2rdf.py 2009-01-25 17:14:03 UTC (rev 316)
+++ musicGrabber/branches/webserv-branch/myspace2rdf.py 2009-01-26 10:28:38 UTC (rev 317)
@@ -131,10 +131,10 @@
def createArtistRDF(self):
'''write RDF for an artist page'''
- if self.scrapArtistID() and self.scrapPlaylistNumber():
+ if self.scrapeArtistID() and self.scrapePlaylistNumber():
pass
else:
- print 'crap failed'
+ print 'scrape failed'
# get the image
imageURL = scrapePage(self.page, [picTag[0]+str(self.uid)+'''"><img src="'''], picTag[1])
@@ -190,22 +190,22 @@
p = f.read()
print p
- def scrapArtistID(self):
- '''attempt to find via scrap of page the internal artist number.'''
+ def scrapeArtistID(self):
+ '''attempt to find via scrape of page the internal artist number.'''
try:
self.artistID = scrapePage(self.page, [artistIDtag[0]], artistIDtag[1])
return True
except Exception, err:
- print "Ran into trouble trying to scrap the ArtistID for page from " + self.source + "\nError::" + str(err)
+ print "Ran into trouble trying to scrape the ArtistID for page from " + self.source + "\nError::" + str(err)
return False
- def scrapPlaylistNumber(self):
- """attempts to find via scrap of the internal identifier of an artist's playlist of songs"""
+ def scrapePlaylistNumber(self):
+ """attempts to find via scrape of the internal identifier of an artist's playlist of songs"""
try:
self.playlistID = scrapePage(self.page, [playlistIDtag[0]], playlistIDtag[1])
return True
except Exception, err:
- print "Ran into trouble trying to scrap the playlistID for page from " + self.source + "\nError::" + str(err)
+ print "Ran into trouble trying to scrape the playlistID for page from " + self.source + "\nError::" + str(err)
return False
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|