public
Description: Small RDF python scraper for gumtree ads (include geocoding)
Clone URL: git://github.com/moustaki/flatscrap.git
Search Repo:
Readme, and fixing geocoding
moustaki (author)
Thu Mar 06 12:19:27 -0800 2008
commit  277b9df29d61b9cc7f8e6f635eeb185d44ee4a0d
tree    fefa857ea4de67919290796a1338d5f8e71f9462
parent  01c615b2df65967d110c4ed85cd9a89e6a986168
0
...
 
...
1
0
@@ -1 +1,2 @@
0
+./flatscrap.py <gumtreeurl> <outputfile>
...
6
7
8
 
9
10
11
12
13
...
75
76
77
78
 
...
6
7
8
9
10
 
11
12
13
...
75
76
77
 
78
0
@@ -6,8 +6,8 @@
0
 from rdflib import ConjunctiveGraph
0
 from rdflib import BNode, Literal, Namespace, URIRef
0
 from rdflib import plugin
0
+from rdflib.syntax.serializers import TurtleSerializer
0
 
0
-
0
 #print "Scrapping "+sys.argv[1]
0
 
0
 f = urllib.urlopen(sys.argv[1])
0
@@ -75,5 +75,5 @@
0
 graph.add((flat,DC['title'],Literal(title)))
0
 graph.add((flat,DC['description'],Literal(description)))
0
 
0
-print graph.serialize(destination=sys.argv[2],format='rdf')
0
+print graph.serialize(destination=sys.argv[2],format='xml')

Comments

    No one has commented yet.