Commits

Alex Stolz committed 3185d00

changed default user-agent name of rdflib to a custom one

  • Participants
  • Parent commits 573e82e

Comments (0)

Files changed (2)

lib/rdflib/parser.py

 
 
 headers = {
-    'User-agent': 'rdflib-%s (http://rdflib.net/; eikeon@eikeon.com)' % __version__,
+    'User-agent': 'Python RDF Translator (http://rdf-translator.appspot.com/)', #'rdflib-%s (http://rdflib.net/; eikeon@eikeon.com)' % __version__,
     'Cache-control': 'max-age=10'
     }
 
 ## langcode = re.compile(r'[a-zA-Z]+(-[a-zA-Z0-9]+){0,2}')
 # rdflib/plugins/serializers/turtle.py:205
 ## commented lines for the creation of prefixes -> qnames for subjects and objects
+# rdflib/parser.py:67
+## user-agent string of http header to "Python RDF Translator (http://rdf-translator.appspot.com/)", otherwise certain web pages will obfuscate certain content, i.e. rich snippet code