Esempio n. 1
0
#-*- 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"]
Esempio n. 2
0
#-*- 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
Esempio n. 3
0
#-*- 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)
Esempio n. 4
0
#-*- 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
Esempio n. 5
0
#-*- 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
Esempio n. 6
0
#-*- 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"] )
Esempio n. 7
0
#-*- 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 )
Esempio n. 8
0
#-*- 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