urllib._urlopener = MyURLopener()
-server_version = "bookmarks_db (Python-urllib/%s)" % urllib.__version__
-urllib._urlopener.addheaders[0] = ('User-agent', server_version)
+# Fake headers to pretend this is a real browser
+_version = "Links (2.1; Linux 2.6 i686; 80x25)"
+urllib._urlopener.addheaders[0] = ('User-Agent', _version)
+_version = "bookmarks_db (Python-urllib/%s)" % urllib.__version__
+urllib._urlopener.addheader('X-User-Agent', _version)
+
+urllib._urlopener.addheader('Connection', 'close')
+urllib._urlopener.addheader('Content-Length', '0')
+urllib._urlopener.addheader('Accept', '*/*')
+urllib._urlopener.addheader('Accept-Language', 'ru,en')
+urllib._urlopener.addheader('Cache-Control', 'max-age=300')
+urllib._urlopener.addheader('Referer', 'http://www.yahoo.com/')
def get_error(msg):