#-*- coding:UTF-8 -*- #=================================================================================================== # # nabo_test.py (for Nabo) # 2014, XKY # License: LGPL v3 # #=================================================================================================== from nabo import Nabo #Parser from nabo import Conv #HTML code processor from pprint import pprint if __name__ == "__main__": # Target: http://blogpeople.blog.me/150181071013 test = Nabo("blogpeople") test.open("http://blogpeople.blog.me/150181071013") print "title:", test.DATA["naver"]["title"] print "date :", test.DATA["naver"]["date"]
#-*- coding:UTF-8 -*- #=================================================================================================== # # unicode_debugger.py (for Nabo) # Debug test for 'UnicodeEncodeError' # # 2014, XKY # License: LGPL v3 # #=================================================================================================== from nabo import Nabo #Parser if __name__ == "__main__": # Target: http://blogpeople.blog.me/150181071013 test = Nabo("blogpeople") test.open("http://blogpeople.blog.me/150181071013") print test.DATA["naver"]["title"] print test.showType( "body" ) print "-" * 79 a = test.toUni( "title" ) print a
#-*- coding:UTF-8 -*- #=================================================================================================== # # login_test.py (for Nabo) # 2014, XKY # License: LGPL v3 # #=================================================================================================== from nabo import Nabo #Parser from nabo import Conv #HTML code processor if __name__ == "__main__": # Target: http://blogpeople.blog.me/150181071013 id = raw_input("Your id: ") pw = raw_input("Your pw: ") test = Nabo(id) test.login(id, pw)
#-*- coding:UTF-8 -*- #=================================================================================================== # # json_test.py (for Nabo) # 2014, XKY # License: LGPL v3 # #=================================================================================================== from nabo import Nabo if __name__ == "__main__": # Target: http://blogpeople.blog.me/150181071013 test = Nabo("blogpeople") test.open("http://blogpeople.blog.me/150181071013") json_string = test.getJson() print json_string
#-*- coding:UTF-8 -*- #=================================================================================================== # # unicode_debugger.py (for Nabo) # Debug test for 'UnicodeEncodeError' # # 2014, XKY # License: LGPL v3 # #=================================================================================================== from nabo import Nabo #Parser if __name__ == "__main__": # Target: http://blogpeople.blog.me/150181071013 test = Nabo("blogpeople") test.open("http://blogpeople.blog.me/150181071013") print test.DATA["naver"]["title"] print test.showType("body") print "-" * 79 a = test.toUni("title") print a
#-*- coding:UTF-8 -*- #=================================================================================================== # # conv_test.py (for Nabo) # 2014, XKY # License: LGPL v3 # #=================================================================================================== from nabo import Nabo #Parser from nabo import Conv #HTML code processor from pprint import pprint if __name__ == "__main__": # Target: http://blogpeople.blog.me/150181071013 test = Nabo("blogpeople") test.open("http://blogpeople.blog.me/150181071013") post = Conv( test ) post.autoclean() post = post.commit() pprint( test.DATA["naver"]["body"] ) #pprint( post.DATA["naver"]["body"] )
#-*- coding:UTF-8 -*- #=================================================================================================== # # login_test.py (for Nabo) # 2014, XKY # License: LGPL v3 # #=================================================================================================== from nabo import Nabo #Parser from nabo import Conv #HTML code processor if __name__ == "__main__": # Target: http://blogpeople.blog.me/150181071013 id = raw_input( "Your id: ") pw = raw_input( "Your pw: ") test = Nabo( id ) test.login( id, pw )