From: Eric S. Raymond Date: Fri, 15 Oct 2010 03:19:12 +0000 (-0400) Subject: We can parse out the permalink. X-Git-Tag: 2.0~35 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=dbb12bef1f24fec53af75031bfd5e950ccd5bb76;p=freecode-submit.git We can parse out the permalink. --- diff --git a/freshmeat-submit b/freshmeat-submit index 21afa2a..8257fe5 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -63,8 +63,10 @@ class FreshmeatSession: % (self.project, self.auth) self.handle = urllib2.urlopen(query) content = json.loads(self.handle.read()) - print "Header", self.handle.info() - print "Content", content + content = content['project'] + self.permalink = content['permalink'] + if self.verbose: + print "Permalink:", self.permalink def publish_release(self, data): "Add a new release to the current project."